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

Disassembly:
push 0xffffffffffffffff
push 0x522bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x134]
mov edx, 0x1ae
mov dword [esp + 0x84], edx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x138]
xor ebp, ebp
mov edi, 0x14
mov esi, 0x10e
cmp word [edx], 3
mov eax, 0x1ea
mov dword [esp + 0x124], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 0x32
mov dword [esp + 0x70], 0x6e
mov dword [esp + 0x74], 0xaa
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x172
mov dword [esp + 0x80], 0x190
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0x226
mov dword [esp + 0x90], 0x294
mov dword [esp + 0x94], 0x316
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x48], 0x78
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x168
mov dword [esp + 0x54], 0x186
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x280
mov dword [esp + 0x64], 0x2da
mov dword [esp + 0x38], ebx
jne 0x4ca4b6
lea edi, [esp + 0x68]
mov esi, 5
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], esi
jmp 0x4ca4cc
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov edi, eax
mov ecx, dword [ecx + 0x8e]
mov ax, word [ecx + 0x2c]
mov ecx, dword [edx + 6]
dec ax
neg ax
sbb eax, eax
sub ecx, dword [edx + 2]
and al, 0xfb
xor edx, edx
add eax, 0x1e
cmp ecx, eax
mov dword [esp + 0x24], eax
setg dl
inc edx
xor ecx, ecx
cmp dx, bp
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
jle 0x4ca72e
mov dword [esp + 0x2c], ebp
xor ebp, ebp
test esi, esi
mov dword [esp + 0x14], ebp
jle 0x4ca716
lea eax, [esi + 1]
imul eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4ca52d
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea esi, [eax + ebp]
call fcn.004f3349
mov edx, dword [esp + 0x138]
push ebp
push 0
lea ecx, [esp + 0xb0]
movsx eax, word [edx]
push eax
push ecx
call fcn.00468d60
mov edx, eax
add esp, 0x10
mov eax, dword [edx]
push eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0xa4], ecx
mov ecx, 0x595e30
mov edx, dword [edx + 0xc]
mov dword [esp + 0xa8], edx
call fcn.004044e0
push eax
lea ecx, [esp + 0x14]
call fcn.004f3547
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
movsx esi, si
push 0
push 0
mov edx, dword [edi + esi*4]
push eax
mov eax, dword [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x13c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004cbf50
test ebp, ebp
mov ebx, eax
jne 0x4ca5f0
mov edx, dword [esp + 0x18]
push 2
lea eax, [esi + edx]
mov edx, dword [edi + esi*4]
mov ecx, dword [edi + eax*4]
lea eax, [ebx + 4]
push ecx
mov ecx, dword [esp + 0x138]
push edx
mov edx, dword [esp + 0x138]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.004cbe20
mov eax, dword [esp + 0x24]
xor ebp, ebp
test eax, eax
jle 0x4ca6f1
mov ecx, dword [esp + 0x138]
mov ax, word [ecx + 2]
mov edx, dword [ecx + 6]
add ax, word [esp + 0x2c]
add eax, ebp
movsx eax, ax
cmp eax, edx
mov dword [esp + 0x1c], eax
jge 0x4ca6f1
lea ecx, [esp + 0x10]
call fcn.004f3349
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ca658
xor eax, eax
cdq
idiv dword [esp + 0x18]
test edx, edx
jne 0x4ca658
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
inc eax
push eax
push 0x563178
push ecx
call fcn.004f0a68
add esp, 0xc
jmp 0x4ca6bb
mov edx, dword [esp + 0x138]
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xb8]
cmp word [edx], 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
jne 0x4ca68f
mov ecx, dword [esp + 0x1c]
dec eax
push eax
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.00460330
jmp 0x4ca6a3
mov ecx, dword [esp + 0x1c]
dec eax
push eax
lea edx, [esp + 0xbc]
push ecx
push edx
call fcn.00468050
add esp, 0xc
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x10]
push eax
call fcn.004f3547
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + esi*4]
mov eax, dword [esp + 0x130]
push 0
push 1
push ecx
mov ecx, dword [esp + 0x138]
push ebx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004cbf50
mov ebx, eax
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jl 0x4ca5fe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4ca525
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
inc ecx
add ebp, eax
cmp cx, dx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebp
jl 0x4ca50b
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 0x10