Function at 0x4084c3
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x2ec, 0
push eax
sub ebp, 0x82
lea edx, [ebp - 0x166]
mov eax, 0x408177
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.00408c37
push eax
call dword [ebx]
lea edx, [ebp - 0x166]
mov ebx, eax
mov esi, eax
mov eax, 0x408197
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push ebx
call dword [edi]
mov dword [ebp - 0x1e], eax
cmp dword [ebp - 0x26e], 0
jne 0x408521
push 0
call dword [ebp - 0x1e]
mov dword [ebp - 0x26e], eax
lea edx, [ebp - 0x166]
mov eax, 0x4081a8
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
push 0x104
mov dword [ebp - 0x5e], eax
lea eax, [ebp - 0x26a]
push eax
push dword [ebp - 0x26e]
call dword [ebp - 0x5e]
mov eax, dword [ebp - 0x26e]
mov edx, eax
add edx, dword [eax + 0x3c]
mov dword [ebp + 0x72], edx
movzx eax, word [edx + 0x14]
add edx, 0x18
add edx, eax
mov eax, dword [ebp + 0x72]
mov dword [ebp - 0xa], edx
movzx eax, word [eax + 6]
lea edx, [ebp - 0x166]
mov dword [ebp + 0x2a], eax
mov eax, 0x408180
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp + 0x1a], eax
mov eax, 0x4081bb
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp - 0x1a], eax
mov eax, 0x4081c7
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp - 0x2e], eax
mov eax, 0x4081da
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
mov dword [ebp - 0x16], eax
lea edx, [ebp - 0x166]
mov eax, 0x4081e8
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp - 0x22], eax
mov eax, 0x4081f8
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp + 0xe], eax
mov eax, 0x408204
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp + 0x76], eax
mov eax, 0x408213
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp - 0x2a], eax
mov eax, 0x408225
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
lea edx, [ebp - 0x166]
mov dword [ebp + 2], eax
mov eax, 0x40818c
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00408c37
push eax
push esi
call dword [ebx]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x26a]
push eax
call dword [ebp - 0x1a]
mov dword [ebp + 0x2e], eax
cmp eax, 0xffffffff
jne 0x4086c8
lea eax, [ebp - 0x26a]
call fcn.00408362
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0x2e]
call dword [ebp - 0x2e]
mov dword [ebp - 0x62], eax
test eax, eax
jne 0x4086ea
lea eax, [ebp - 0x26a]
call fcn.00408362
push 0
push 0
push 0
push 4
push dword [ebp - 0x62]
call dword [ebp - 0x16]
mov dword [ebp + 0x22], eax
test eax, eax
jne 0x40870a
lea eax, [ebp - 0x26a]
call fcn.00408362
mov esi, dword [ebp + 0x22]
add esi, dword [0x4080ad]
cmp dword [esi], 0x14181996
je 0x408726
lea eax, [ebp - 0x26a]
call fcn.0040834d
lea eax, [esi + 0x54]
mov dword [ebp + 0x4a], eax
mov eax, dword [esi + 0x1c]
shl eax, 4
add eax, dword [ebp + 0x4a]
mov edx, dword [eax + 0x1c]
push 0x10004
add edx, eax
push 0
mov dword [ebp - 0x5a], edx
call dword [ebp + 0x1a]
mov dword [ebp + 0x42], eax
test eax, eax
jne 0x408759
lea eax, [ebp - 0x26a]
call fcn.00408328
mov eax, dword [ebp + 0x72]
mov eax, dword [eax + 0x38]
dec eax
mov dword [ebp + 0x1e], eax
mov eax, dword [ebp + 0x72]
add eax, 0x78
mov dword [ebp + 0x5e], eax
call dword [ebp - 0x2a]
push 0
push 0
push eax
mov dword [ebp - 0x32], eax
call dword [ebp + 2]
mov eax, dword [ebp + 0x1a]
mov dword [0x408320], eax
mov eax, dword [ebp - 0xe]
mov dword [0x408324], eax
mov edx, dword [ebp + 0x72]
mov eax, dword [esi + 0x20]
mov edx, dword [edx + 0x28]
mov dword [ebp + 0x16], eax
mov eax, dword [ebp - 0x26e]
mov ebx, dword [ebp + 0x16]
add eax, edx
sub ebx, edx
inc eax
lea edx, [ebx - 5]
mov dword [eax], edx
mov edi, dword [ebp + 0x4a]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x62], 0
mov dword [ebp - 6], eax
jmp 0x4087e5
mov dword [ebp - 0x52], 2
cmp dword [ebp - 0x52], 4
je 0x4087df
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
je 0x4087df
lea eax, [ebp - 0x56]
push eax
push dword [ebp - 0x52]
push dword [ebp + 0x46]
push dword [ebp - 0x4e]
call dword [ebp + 0x76]
inc dword [ebp + 0x62]
add edi, 0x10
mov eax, dword [ebp + 0x62]
cmp eax, dword [ebp - 6]
jae 0x408878
imul eax, dword [edi], 0x28
mov edx, dword [ebp - 0xa]
add edx, eax
mov eax, edx
mov dword [ebp + 0x36], edx
mov edx, dword [ebp - 0x26e]
add edx, dword [eax + 0xc]
mov dword [ebp - 0x4e], edx
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
jne 0x408817
mov eax, dword [esi + 0x40]
add dword [ebp - 0x4e], eax
mov eax, dword [edi + 8]
mov dword [ebp + 0x46], eax
lea eax, [ebp - 0x52]
push eax
push 4
push dword [ebp + 0x46]
push dword [ebp - 0x4e]
lea ebx, [ebp - 0x4e]
call dword [ebp + 0x76]
push dword [ebp + 0x42]
lea edx, [ebp - 0x5a]
lea eax, [ebp - 0x26a]
push dword [ebp + 0x46]
mov ecx, dword [edi + 0xc]
call fcn.00408bea
mov eax, dword [ebp + 0x36]
mov edx, dword [edi + 4]
mov eax, dword [eax + 0x24]
and edx, 0x80000000
and eax, 0x80000000
cmp edx, eax
je 0x4087c2
test byte [edi + 4], 0x20
je 0x4087bb
mov dword [ebp - 0x52], 0x20
jmp 0x4087c2
cmp dword [esi + 0x24], 0
je 0x4089a2
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x26e]
mov dword [ebp + 0x26], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 2], eax
mov eax, dword [ebp + 0x5e]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp + 0x5e]
mov dword [ebp + 0x32], eax
add eax, dword [edx + 0x64]
mov dword [ebp - 0x66], eax
lea eax, [ebp - 0x4a]
push eax
push 4
push dword [ebp - 2]
push dword [ebp + 0x26]
call dword [ebp + 0x76]
mov eax, dword [ebp - 0x26e]
add eax, dword [esi + 0x24]
mov dword [ebp + 0x7e], eax
mov dword [ebp - 0x26], eax
jmp 0x4088ca
add dword [ebp + 0x7e], 0x14
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x408992
mov edx, dword [ebp + 0x7e]
cmp edx, dword [ebp - 0x26]
jbe 0x4088eb
mov ebx, dword [ebp + 0x7e]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebx - 4]
je 0x4088c6
mov edx, dword [ebp - 0x26e]
add edx, eax
mov eax, dword [sym.imp.kernel32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x4e], edx
call dword [eax]
mov dword [ebp - 0x36], eax
test eax, eax
jne 0x408913
mov edx, dword [ebp + 0x4e]
lea eax, [ebp - 0x26a]
call fcn.00408377
mov eax, dword [ebp + 0x7e]
mov edi, dword [ebp - 0x26e]
add edi, dword [eax + 0x10]
jmp 0x40894e
test eax, 0x80000000
jne 0x408933
add eax, dword [ebp - 0x26e]
lea ebx, [eax + 2]
jmp 0x408971
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x40896e
add edi, 4
mov eax, dword [edi]
test eax, eax
je 0x4088c6
cmp eax, dword [ebp + 0x32]
jb 0x408921
cmp eax, dword [ebp - 0x66]
jae 0x408921
add eax, dword [ebp - 0x26e]
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x40894b
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
push dword [ebp - 0x36]
call dword [eax]
mov dword [edi], eax
test eax, eax
jne 0x40894b
mov edx, dword [ebp + 0x4e]
lea eax, [ebp - 0x26a]
call fcn.004083b3
jmp 0x40894b
lea eax, [ebp - 0x46]
push eax
push dword [ebp - 0x4a]
push dword [ebp - 2]
push dword [ebp + 0x26]
call dword [ebp + 0x76]
mov eax, dword [ebp + 0x72]
mov edx, dword [ebp - 0x26e]
sub edx, dword [eax + 0x34]
mov dword [ebp + 0xa], edx
je 0x408b75
cmp dword [esi + 0x30], 0
je 0x4089c3
cmp dword [esi + 0x34], 0
jne 0x4089ce
lea eax, [ebp - 0x26a]
call fcn.00408495
mov dword [ebp + 0x7a], 0
mov dword [ebp + 0x6a], 0
mov dword [ebp - 0x42], 4
mov edi, dword [ebp - 0x26e]
mov eax, dword [esi + 0x34]
add edi, dword [esi + 0x30]
mov dword [ebp + 0x56], eax
cmp dword [ebp + 0x56], 0
je 0x408b5b
mov eax, dword [ebp - 0x26e]
add eax, dword [edi]
mov dword [ebp - 0x12], eax
mov eax, dword [edi + 4]
mov dword [ebp + 0x66], eax
test eax, eax
je 0x408b5b
sub eax, 8
shr eax, 1
mov dword [ebp + 0x52], eax
lea eax, [edi + 8]
mov dword [ebp + 0x5a], eax
dec dword [ebp + 0x52]
cmp dword [ebp + 0x52], 0xffffffff
je 0x408b4e
mov eax, dword [ebp + 0x5a]
mov ax, word [eax]
movzx edx, ax
sar edx, 0xc
add dword [ebp + 0x5a], 2
cmp edx, 3
jne 0x408a23
and ah, 0xf
movzx ebx, ax
add ebx, dword [ebp - 0x12]
cmp ebx, dword [ebp + 0x6a]
jb 0x408b44
cmp dword [ebp - 0x42], 4
je 0x408a71
lea eax, [ebp - 0x56]
push eax
mov eax, dword [ebp + 0x6a]
push dword [ebp - 0x42]
sub eax, dword [ebp + 0x7a]
push eax
push dword [ebp + 0x7a]
call dword [ebp + 0x76]
mov eax, ebx
sub eax, dword [ebp - 0x26e]
mov dword [ebp + 0x6e], 0
mov dword [ebp + 0x12], eax
mov eax, dword [ebp - 0xa]
jmp 0x408a8e
inc dword [ebp + 0x6e]
add eax, 0x28
mov edx, dword [ebp + 0x6e]
cmp edx, dword [ebp + 0x2a]
jge 0x408b31
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x408aa8
mov ecx, dword [eax + 8]
mov dword [ebp + 0x3e], ecx
mov ecx, dword [ebp + 0x3e]
add ecx, dword [ebp + 0x1e]
mov dword [ebp - 0x3e], ecx
mov ecx, dword [ebp + 0x1e]
mov dword [ebp - 0x3a], ecx
not dword [ebp - 0x3a]
mov ecx, dword [ebp - 0x3e]
and ecx, dword [ebp - 0x3a]
add ecx, edx
mov dword [ebp + 0x3a], ecx
cmp edx, dword [ebp + 0x12]
ja 0x408a88
mov ecx, dword [ebp + 0x12]
cmp ecx, dword [ebp + 0x3a]
jae 0x408a88
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x26e]
mov dword [ebp + 6], eax
add ecx, edx
mov edx, dword [ebp - 0x26e]
mov eax, dword [ebp + 0x4a]
add edx, dword [ebp + 0x3a]
mov dword [ebp + 0x7a], ecx
mov dword [ebp + 0x6a], edx
xor edx, edx
jmp 0x408afd
inc edx
add eax, 0x10
cmp edx, dword [ebp - 6]
jae 0x408b0f
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x6e]
jne 0x408af9
mov eax, dword [eax + 4]
mov dword [ebp + 6], eax
test byte [ebp + 9], 0x80
jne 0x408b2a
lea eax, [ebp - 0x42]
push eax
mov eax, dword [ebp + 0x6a]
push 4
sub eax, dword [ebp + 0x7a]
push eax
push dword [ebp + 0x7a]
call dword [ebp + 0x76]
jmp 0x408b31
mov dword [ebp - 0x42], 4
mov eax, dword [ebp + 0x6e]
cmp eax, dword [ebp + 0x2a]
jne 0x408b44
lea eax, [ebp - 0x26a]
call fcn.0040834d
mov eax, dword [ebp + 0xa]
add dword [ebx], eax
jmp 0x408a23
mov eax, dword [ebp + 0x66]
sub dword [ebp + 0x56], eax
add edi, eax
jmp 0x4089f2
cmp dword [ebp - 0x42], 4
je 0x408b75
lea eax, [ebp - 0x56]
push eax
mov eax, dword [ebp + 0x6a]
push dword [ebp - 0x42]
sub eax, dword [ebp + 0x7a]
push eax
push dword [ebp + 0x7a]
call dword [ebp + 0x76]
cmp dword [esi + 0x44], 0
je 0x408bb2
mov eax, dword [ebp + 0x5e]
mov edx, dword [ebp - 0x26e]
add edx, dword [eax + 0x48]
mov ebx, dword [edx + 8]
mov eax, edx
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x26e]
add ebx, dword [esi + 0x44]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, dword [eax]
mov eax, edx
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0x22]
call dword [ebp - 0x22]
push dword [ebp - 0x62]
call dword [ebp + 0xe]
push dword [ebp + 0x2e]
call dword [ebp + 0xe]
push 0
push 0
push dword [ebp - 0x32]
call dword [ebp + 2]
push dword [ebp + 0x42]
call dword [ebp - 0xe]
mov eax, dword [ebp - 0x26e]
add eax, dword [ebp + 0x16]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret