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

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x2e8, 0
push eax
sub ebp, 0x82
lea edx, [ebp - 0x162]
mov eax, 0x59016b
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryA]
call fcn.00590d5f
push eax
call dword [ebx]
lea edx, [ebp - 0x162]
mov esi, eax
mov ebx, eax
mov eax, 0x59018b
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push esi
call dword [edi]
mov dword [ebp - 0xe], eax
cmp dword [ebp - 0x26a], 0
jne 0x590515
push 0
call dword [ebp - 0xe]
mov dword [ebp - 0x26a], eax
lea edx, [ebp - 0x162]
mov eax, 0x59019c
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
push 0x104
mov dword [ebp - 0x52], eax
lea eax, [ebp - 0x266]
push eax
push dword [ebp - 0x26a]
call dword [ebp - 0x52]
mov eax, dword [ebp - 0x26a]
mov edi, eax
add edi, dword [eax + 0x3c]
lea eax, [edi + 0x18]
movzx edx, word [edi + 0x14]
add eax, edx
mov dword [ebp + 0x1e], eax
movzx eax, word [edi + 6]
lea edx, [ebp - 0x162]
mov dword [ebp + 0x2a], eax
mov eax, 0x590174
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 6], eax
mov eax, 0x5901af
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x1e], eax
mov eax, 0x5901bb
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x1a], eax
mov eax, 0x5901ce
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
mov dword [ebp - 0x26], eax
lea edx, [ebp - 0x162]
mov eax, 0x5901dc
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x62], eax
mov eax, 0x5901ec
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 0xe], eax
mov eax, 0x5901f8
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 0x6e], eax
mov eax, 0x590207
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp - 0x22], eax
mov eax, 0x590219
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
lea edx, [ebp - 0x162]
mov dword [ebp + 6], eax
mov eax, 0x590180
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
call fcn.00590d5f
push eax
push ebx
call dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov dword [ebp + 0x5a], eax
lea eax, [ebp - 0x266]
push eax
call dword [ebp - 0x1e]
mov dword [ebp + 0x42], eax
cmp eax, 0xffffffff
jne 0x5906b6
lea eax, [ebp - 0x266]
call fcn.00590356
push 0
push 0
push 0
push 2
push 0
push dword [ebp + 0x42]
call dword [ebp - 0x1a]
mov dword [ebp + 0xa], eax
test eax, eax
jne 0x5906d8
lea eax, [ebp - 0x266]
call fcn.00590356
push 0
push 0
push 0
push 4
push dword [ebp + 0xa]
call dword [ebp - 0x26]
mov dword [ebp + 0x12], eax
test eax, eax
jne 0x5906f8
lea eax, [ebp - 0x266]
call fcn.00590356
mov esi, dword [ebp + 0x12]
add esi, dword [0x5900a1]
cmp dword [esi], 0x4181996
je 0x590714
lea eax, [ebp - 0x266]
call fcn.00590341
lea eax, [esi + 0x54]
mov dword [ebp + 0x52], eax
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 0x52]
shl eax, 4
push 0x10004
add edx, eax
push 0
mov dword [ebp - 0x4e], edx
call dword [ebp - 6]
mov dword [ebp + 0x6a], eax
test eax, eax
jne 0x590744
lea eax, [ebp - 0x266]
call fcn.0059031c
mov edx, dword [ebp - 0x26a]
mov ecx, dword [ebp + 0x6a]
mov eax, dword [edi + 0x28]
mov ebx, dword [esi + 0xc]
add edx, eax
mov eax, dword [ebp - 0x4e]
mov dword [ebp + 0x1a], edx
add edx, dword [esi + 8]
call fcn.00590e64
mov dword [ebp - 0x4e], eax
test eax, eax
jne 0x59077a
mov edx, 0xfffffffd
lea eax, [ebp - 0x266]
call fcn.005904a1
mov edx, dword [ebp + 0x1a]
mov ecx, dword [ebp + 0x6a]
mov eax, dword [ebp - 0x4e]
mov ebx, dword [esi + 0x14]
add edx, dword [esi + 0x10]
call fcn.00590e64
mov dword [ebp - 0x4e], eax
test eax, eax
jne 0x5907a5
mov edx, 0xfffffffd
lea eax, [ebp - 0x266]
call fcn.005904a1
mov eax, dword [edi + 0x38]
dec eax
mov dword [ebp + 0x3a], eax
lea eax, [edi + 0x78]
mov ebx, dword [ebp - 0x26a]
mov dword [ebp + 0x4a], eax
sub ebx, dword [edi + 0x34]
je 0x5907df
cmp dword [esi + 0x18], 0
jne 0x5907ce
lea eax, [ebp - 0x266]
call fcn.00590489
mov ecx, dword [ebp - 0x26a]
mov eax, dword [ebp - 0x4e]
mov edx, dword [esi + 0x18]
call fcn.00590d00
mov eax, dword [esi + 0x18]
add dword [ebp - 0x4e], eax
call dword [ebp - 0x22]
push 0
push 0
push eax
mov dword [ebp - 0x12], eax
call dword [ebp + 6]
mov eax, dword [ebp - 6]
mov dword [0x590314], eax
mov eax, dword [ebp + 0x5a]
mov dword [0x590318], eax
mov eax, dword [esi + 0x20]
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x56], eax
mov eax, dword [ebp - 0x26a]
mov ebx, dword [ebp - 0x56]
add eax, edx
sub ebx, edx
inc eax
lea edx, [ebx - 5]
mov dword [eax], edx
mov eax, dword [ebp + 0x52]
mov dword [ebp + 0x7e], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x5e], 0
mov dword [ebp + 0x16], eax
jmp 0x590862
mov dword [ebp - 0x46], 2
cmp dword [ebp - 0x46], 4
je 0x59085b
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax]
cmp eax, dword [esi + 0x3c]
je 0x59085b
lea eax, [ebp - 0x4a]
push eax
push dword [ebp - 0x46]
push dword [ebp + 0x4e]
push dword [ebp - 0x42]
call dword [ebp + 0x6e]
inc dword [ebp + 0x5e]
add dword [ebp + 0x7e], 0x10
mov eax, dword [ebp + 0x5e]
cmp eax, dword [ebp + 0x16]
jae 0x590907
mov eax, dword [ebp + 0x7e]
imul eax, dword [eax], 0x28
mov edx, dword [ebp + 0x1e]
add edx, eax
mov eax, edx
mov dword [ebp + 2], edx
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x7e]
mov dword [ebp - 0x42], edx
mov eax, dword [eax]
cmp eax, dword [esi + 0x3c]
jne 0x59089a
mov eax, dword [esi + 0x40]
add dword [ebp - 0x42], eax
mov eax, dword [ebp + 0x7e]
mov eax, dword [eax + 8]
mov dword [ebp + 0x4e], eax
lea eax, [ebp - 0x46]
push eax
push 4
push dword [ebp + 0x4e]
push dword [ebp - 0x42]
lea ebx, [ebp - 0x42]
call dword [ebp + 0x6e]
push dword [ebp + 0x6a]
mov ecx, dword [ebp + 0x7e]
lea edx, [ebp - 0x4e]
lea eax, [ebp - 0x266]
push dword [ebp + 0x4e]
mov ecx, dword [ecx + 0xc]
call fcn.00590c96
mov eax, dword [ebp + 0x7e]
mov edx, dword [ebp + 2]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x24]
and eax, 0x80000000
and edx, 0x80000000
cmp eax, edx
je 0x59083b
mov eax, dword [ebp + 0x7e]
test byte [eax + 4], 0x20
je 0x590834
mov dword [ebp - 0x46], 0x20
jmp 0x59083b
cmp dword [esi + 0x24], 0
je 0x590a3e
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x26a]
mov dword [ebp + 0x2e], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x32], eax
mov eax, dword [ebp + 0x4a]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp + 0x4a]
mov dword [ebp - 2], eax
add eax, dword [edx + 0x64]
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x3e]
push eax
push 4
push dword [ebp + 0x32]
push dword [ebp + 0x2e]
call dword [ebp + 0x6e]
mov eax, dword [ebp - 0x26a]
add eax, dword [esi + 0x24]
mov dword [ebp + 0x76], eax
mov dword [ebp - 0xa], eax
jmp 0x590959
add dword [ebp + 0x76], 0x14
mov eax, dword [ebp + 0x76]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x590a2e
mov edx, dword [ebp + 0x76]
cmp edx, dword [ebp - 0xa]
jbe 0x59097a
mov ebx, dword [ebp + 0x76]
mov edx, dword [edx + 0x10]
cmp edx, dword [ebx - 4]
je 0x590955
mov edx, dword [ebp - 0x26a]
add edx, eax
mov eax, dword [sym.imp.kernel32.dll_LoadLibraryA]
push edx
mov dword [ebp + 0x56], edx
call dword [eax]
mov dword [ebp - 0x5e], eax
test eax, eax
jne 0x5909a2
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x266]
call fcn.0059036b
mov eax, dword [ebp + 0x76]
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0x10]
mov dword [ebp + 0x7a], edx
jmp 0x5909e1
test eax, 0x80000000
jne 0x5909c5
add eax, dword [ebp - 0x26a]
lea ebx, [eax + 2]
jmp 0x590a0a
mov edx, eax
and edx, 0x7fffffff
shr edx, 0x10
and edx, 0xffff
movzx edx, dx
test edx, edx
je 0x590a07
add dword [ebp + 0x7a], 4
mov eax, dword [ebp + 0x7a]
mov eax, dword [eax]
test eax, eax
je 0x590955
cmp eax, dword [ebp - 2]
jb 0x5909b3
cmp eax, dword [ebp - 0x16]
jae 0x5909b3
add eax, dword [ebp - 0x26a]
mov edx, dword [ebp + 0x7a]
mov eax, dword [eax]
mov dword [edx], eax
jmp 0x5909dd
movzx ebx, ax
push ebx
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
push dword [ebp - 0x5e]
call dword [eax]
mov edx, dword [ebp + 0x7a]
mov dword [edx], eax
test eax, eax
jne 0x5909dd
mov edx, dword [ebp + 0x56]
lea eax, [ebp - 0x266]
call fcn.005903a7
jmp 0x5909dd
lea eax, [ebp - 0x3a]
push eax
push dword [ebp - 0x3e]
push dword [ebp + 0x32]
push dword [ebp + 0x2e]
call dword [ebp + 0x6e]
mov eax, dword [ebp - 0x26a]
sub eax, dword [edi + 0x34]
mov dword [ebp + 0x3e], eax
je 0x590c1f
cmp dword [esi + 0x30], 0
jne 0x590a61
lea eax, [ebp - 0x266]
call fcn.00590489
mov dword [ebp - 0x36], 4
mov dword [ebp - 0x32], 0
push dword [ebp + 0x6a]
lea ebx, [ebp - 0x32]
lea edx, [ebp - 0x4e]
lea eax, [ebp - 0x266]
push dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
call fcn.00590c96
mov ebx, dword [ebp - 0x32]
mov dword [ebp + 0x72], 0
mov eax, ebx
mov dword [ebp + 0x62], 0
add eax, dword [esi + 0x30]
mov edi, dword [ebp - 0x26a]
mov dword [ebp - 0x5a], eax
cmp ebx, dword [ebp - 0x5a]
jb 0x590ae6
jmp 0x590bff
movzx eax, word [ebx]
add eax, 0x101
inc ebx
inc ebx
add edi, eax
jmp 0x590aff
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 2]
shl edx, 0x10
or eax, edx
add eax, 0x10100
add ebx, 3
jmp 0x590abc
add edi, dword [ebx]
add ebx, 4
jmp 0x590aff
mov al, byte [ebx]
inc ebx
cmp al, 1
jb 0x590af5
jbe 0x590ac0
cmp al, 2
je 0x590adf
jmp 0x590af9
test al, al
je 0x590ab2
movzx eax, al
inc eax
jmp 0x590abc
cmp edi, dword [ebp + 0x62]
jb 0x590bf5
cmp dword [ebp - 0x36], 4
je 0x590b22
lea eax, [ebp - 0x4a]
push eax
mov eax, dword [ebp + 0x62]
push dword [ebp - 0x36]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
mov eax, edi
sub eax, dword [ebp - 0x26a]
mov dword [ebp + 0x66], 0
mov dword [ebp + 0x36], eax
mov eax, dword [ebp + 0x1e]
jmp 0x590b3f
inc dword [ebp + 0x66]
add eax, 0x28
mov edx, dword [ebp + 0x66]
cmp edx, dword [ebp + 0x2a]
jge 0x590be2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
ja 0x590b59
mov ecx, dword [eax + 8]
mov dword [ebp + 0x46], ecx
mov ecx, dword [ebp + 0x46]
add ecx, dword [ebp + 0x3a]
mov dword [ebp - 0x2e], ecx
mov ecx, dword [ebp + 0x3a]
mov dword [ebp - 0x2a], ecx
not dword [ebp - 0x2a]
mov ecx, dword [ebp - 0x2e]
and ecx, dword [ebp - 0x2a]
add ecx, edx
mov dword [ebp + 0x22], ecx
cmp edx, dword [ebp + 0x36]
ja 0x590b39
mov ecx, dword [ebp + 0x36]
cmp ecx, dword [ebp + 0x22]
jae 0x590b39
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x26a]
mov dword [ebp + 0x26], eax
add ecx, edx
mov edx, dword [ebp - 0x26a]
mov eax, dword [ebp + 0x52]
add edx, dword [ebp + 0x22]
mov dword [ebp + 0x72], ecx
mov dword [ebp + 0x62], edx
xor edx, edx
jmp 0x590bae
inc edx
add eax, 0x10
cmp edx, dword [ebp + 0x16]
jae 0x590bc0
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x66]
jne 0x590baa
mov eax, dword [eax + 4]
mov dword [ebp + 0x26], eax
test byte [ebp + 0x29], 0x80
jne 0x590bdb
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp + 0x62]
push 4
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
jmp 0x590be2
mov dword [ebp - 0x36], 4
mov eax, dword [ebp + 0x66]
cmp eax, dword [ebp + 0x2a]
jne 0x590bf5
lea eax, [ebp - 0x266]
call fcn.00590341
mov eax, dword [ebp + 0x3e]
add dword [edi], eax
jmp 0x590aa8
cmp dword [ebp - 0x36], 4
je 0x590c19
lea eax, [ebp - 0x4a]
push eax
mov eax, dword [ebp + 0x62]
push dword [ebp - 0x36]
sub eax, dword [ebp + 0x72]
push eax
push dword [ebp + 0x72]
call dword [ebp + 0x6e]
push dword [ebp - 0x32]
call dword [ebp + 0x5a]
cmp dword [esi + 0x44], 0
je 0x590c5e
mov eax, dword [ebp + 0x4a]
mov edx, dword [ebp - 0x26a]
add edx, dword [eax + 0x48]
mov ebx, dword [ebp - 0x26a]
mov edi, dword [edx + 8]
add ebx, dword [esi + 0x44]
mov edi, dword [edi]
mov dword [ebx], edi
mov eax, edx
mov edx, dword [edx + 4]
mov esi, dword [eax]
sub edx, dword [eax]
mov eax, edi
mov ebx, dword fs:[0x2c]
mov eax, dword [ebx + eax*4]
mov ecx, edx
mov edi, eax
push edi
repne movsb byte es:[edi], byte [esi]
pop edi
push dword [ebp + 0x12]
call dword [ebp - 0x62]
push dword [ebp + 0xa]
call dword [ebp + 0xe]
push dword [ebp + 0x42]
call dword [ebp + 0xe]
push 0
push 0
push dword [ebp - 0x12]
call dword [ebp + 6]
push dword [ebp + 0x6a]
call dword [ebp + 0x5a]
mov eax, dword [ebp - 0x26a]
add eax, dword [ebp - 0x56]
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret