Function at 0x21056d96
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x40
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x21056db9
xor eax, eax
jmp 0x2105702b
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x21056dcf
xor eax, eax
jmp 0x2105702b
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x3c], 0
jne 0x21056ddf
xor eax, eax
jmp 0x2105702b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x21056e17
xor eax, eax
jmp 0x2105702b
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x21056e29
xor eax, eax
jmp 0x2105702b
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x10b
je 0x21056e49
cmp dword [ebp - 0x4c], 0x20b
je 0x21056e74
jmp 0x21056ea2
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
push 0xf8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x21056e69
xor eax, eax
jmp 0x2105702b
mov ecx, dword [ebp - 0xc]
add ecx, 0x78
mov dword [ebp - 4], ecx
jmp 0x21056ea9
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
push 0x108
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x21056e94
xor eax, eax
jmp 0x2105702b
mov ecx, dword [ebp - 0x14]
add ecx, 0x88
mov dword [ebp - 4], ecx
jmp 0x21056ea9
xor eax, eax
jmp 0x2105702b
push 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x21056ec0
xor eax, eax
jmp 0x2105702b
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x21057029
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
jmp 0x21056ef8
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x2c], ecx
jae 0x21056f48
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0xc]
jb 0x21056f3d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 4]
cmp dword [edx], eax
jae 0x21056f3d
cmp dword [ebp + 0xc], 0
jne 0x21056f3b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x34], edx
jmp 0x21056f48
mov eax, dword [ebp - 0x28]
add eax, 0x28
mov dword [ebp - 0x28], eax
jmp 0x21056eef
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
jmp 0x21056fa7
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x20]
jae 0x21057029
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x21056fd5
jmp 0x21056f9e
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x3c]
jae 0x21057025
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x44], dx
mov eax, dword [ebp - 0x44]
and eax, 0xffff
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x48], edx
cmp dword [ebp + 0xc], 0
jne 0x21057020
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax]
jb 0x21057020
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 4]
cmp dword [ebp - 0x48], eax
jae 0x21057020
xor eax, eax
jmp 0x2105702b
mov eax, dword [ebp - 0x48]
jmp 0x2105702b
xor eax, eax
jmp 0x2105702b
xor eax, eax
mov esp, ebp
pop ebp
ret