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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x509e3a
sub esp, 0x70
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x74]
movzx ebx, byte [ecx + 4]
cmp bl, 0
je 0x509d46
mov ebp, dword [ecx + 0x10]
cmp ebp, 0
je 0x509d46
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.0054d030
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, edx
mov dword [esp + 0x20], ecx
movzx ebx, byte [eax + 6]
cmp bl, 0
jne 0x509c2a
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.005098b0
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x3c], ebx
mov ebx, ebp
mov dword [esp + 0x30], ebp
cmp ebp, 0
je 0x509c22
mov edi, dword [ebp]
mov ebp, dword [ebp + 4]
mov dword [esp + 0x68], ebp
mov ecx, dword [ebx + 8]
mov dword [esp + 0x64], edi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov ebx, dword [esp + 0x38]
mov ebp, esi
add ebp, ebx
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x24]
cmp edx, ecx
jbe 0x509bb4
mov dword [esp], 0x5c5000
mov dword [esp + 0x58], edi
mov dword [esp + 4], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 8], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.0043cd90
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
cmp eax, ecx
ja 0x509c1b
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x68]
mov ebp, edi
mov dword [esp + 0x58], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004540c0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x5c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x60]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x58]
cmp byte [0x6dae38], 0
jne 0x509c0d
mov dword [ebx], ebp
add esp, 0x70
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040fcf0
jmp 0x509c09
call fcn.00429210
ud2
mov dword [ebp], eax
jmp 0x509b4f
mov ebp, dword [eax]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x54], ebx
mov ebx, ebp
mov dword [esp + 0x2c], ebp
cmp ebp, 0
je 0x509d3e
mov edi, dword [ebp]
mov ebp, dword [ebp + 4]
mov dword [esp + 0x5c], ebp
mov ecx, dword [ebx + 8]
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov ebx, dword [esp + 0x50]
mov ebp, esi
add ebp, ebx
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x24]
cmp eax, ecx
jbe 0x509cbb
mov dword [esp], 0x5c5000
mov dword [esp + 0x64], edi
mov dword [esp + 4], edi
mov dword [esp + 0x68], esi
mov dword [esp + 8], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.0043cd90
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], ecx
cmp eax, ecx
ja 0x509d37
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov ebp, edi
mov dword [esp + 0x64], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004540c0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x68]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x6c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x64]
cmp byte [0x6dae38], 0
jne 0x509d29
mov dword [ebx], ebp
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], ebx
call fcn.005098b0
jmp 0x509c09
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040fcf0
jmp 0x509d10
call fcn.00429210
ud2
mov dword [ebp], eax
jmp 0x509c56
mov ebx, dword [ecx]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], ebx
cmp ebx, 0
je 0x509e33
mov edi, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x68], ebp
mov ecx, dword [ebx + 8]
mov dword [esp + 0x64], edi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov ebx, dword [esp + 0x44]
mov ebp, esi
add ebp, ebx
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x24]
cmp edx, ecx
jbe 0x509dc5
mov dword [esp], 0x5c5000
mov dword [esp + 0x58], edi
mov dword [esp + 4], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 8], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
call fcn.0043cd90
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], ecx
cmp eax, ecx
ja 0x509e2c
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x68]
mov ebp, edi
mov dword [esp + 0x58], edi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.004540c0
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x5c]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x60]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x58]
cmp byte [0x6dae38], 0
jne 0x509e1e
mov dword [ebx], ebp
add esp, 0x70
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040fcf0
jmp 0x509e1a
call fcn.00429210
ud2
mov dword [ebx], eax
jmp 0x509d61
call fcn.004518d0
jmp fcn.00509aa0