Function at 0x2104d253
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 0x2104d276
xor eax, eax
jmp 0x2104d4e8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x2104d28c
xor eax, eax
jmp 0x2104d4e8
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x3c], 0
jne 0x2104d29c
xor eax, eax
jmp 0x2104d4e8
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 0x2104d2d4
xor eax, eax
jmp 0x2104d4e8
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x2104d2e6
xor eax, eax
jmp 0x2104d4e8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x10b
je 0x2104d306
cmp dword [ebp - 0x4c], 0x20b
je 0x2104d331
jmp 0x2104d35f
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 0x2104d326
xor eax, eax
jmp 0x2104d4e8
mov ecx, dword [ebp - 0xc]
add ecx, 0x78
mov dword [ebp - 4], ecx
jmp 0x2104d366
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
push pe_nt_image_headers32
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x2104d351
xor eax, eax
jmp 0x2104d4e8
mov ecx, dword [ebp - 0x14]
add ecx, 0x88
mov dword [ebp - 4], ecx
jmp 0x2104d366
xor eax, eax
jmp 0x2104d4e8
push 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x2104d37d
xor eax, eax
jmp 0x2104d4e8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x2104d4e6
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 0x2104d3b5
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 0x2104d405
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0xc]
jb 0x2104d3fa
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 0x2104d3fa
cmp dword [ebp + 0xc], 0
jne 0x2104d3f8
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 0x2104d405
mov eax, dword [ebp - 0x28]
add eax, 0x28
mov dword [ebp - 0x28], eax
jmp 0x2104d3ac
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 0x2104d464
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x20]
jae 0x2104d4e6
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 0x2104d492
jmp 0x2104d45b
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x3c]
jae 0x2104d4e2
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 0x2104d4dd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax]
jb 0x2104d4dd
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 0x2104d4dd
xor eax, eax
jmp 0x2104d4e8
mov eax, dword [ebp - 0x48]
jmp 0x2104d4e8
xor eax, eax
jmp 0x2104d4e8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc