Function at 0x4cac40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 8]
or dword [edi + 8], 1
mov eax, dword [edi + 4]
and eax, 0xfffffffc
test byte [edi + 4], 1
je 0x4cac60
mov eax, dword [eax]
push eax
push ecx
lea ecx, [edi + 0x78]
call fcn.004b0bc0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x10], 0
je 0x4cac8f
or dword [edi + 8], 2
mov eax, dword [edi + 4]
and eax, 0xfffffffc
test byte [edi + 4], 1
je 0x4cac85
mov eax, dword [eax]
push eax
push ecx
lea ecx, [edi + 0x7c]
call fcn.004b0bc0
cmp byte [esi + 3], 3
jne 0x4cacbe
push 3
call fcn.004dd6c0
or dword [edi + 8], 4
add esp, 4
mov ecx, dword [edi + 4]
and ecx, 0xfffffffc
test byte [edi + 4], 1
je 0x4cacb1
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [edi + 0x80]
call fcn.004db350
push ebx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
jle 0x4cad05
lea eax, [edi + 0x10]
mov dword [ebp - 4], eax
nop dword [eax]
push ebx
mov ecx, esi
call fcn.004e2020
mov ecx, dword [ebp - 4]
mov edi, dword [eax + 8]
call fcn.004e3f30
cmp eax, edi
je 0x4cacfc
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x4cacf1
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
mov ecx, eax
call fcn.0043a760
inc ebx
cmp ebx, dword [esi + 0x18]
jl 0x4cacd0
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
jle 0x4cad31
lea eax, [edi + 0x60]
mov dword [ebp - 4], eax
mov edi, eax
mov eax, dword [esi + 0x34]
mov ecx, edi
mov eax, dword [eax + ebx*4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004e3d60
inc ebx
cmp ebx, dword [esi + 0x1c]
jl 0x4cad14
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jle 0x4cad5d
lea eax, [edi + 0x6c]
mov dword [ebp - 4], eax
mov edi, eax
mov eax, dword [esi + 0x38]
mov ecx, edi
mov eax, dword [eax + ebx*4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004e3d60
inc ebx
cmp ebx, dword [esi + 0x20]
jl 0x4cad40
mov edi, dword [ebp + 8]
cmp dword [esi + 0x24], 0
mov dword [ebp - 4], 0
jle 0x4cadbb
lea ebx, [edi + 0x20]
xor edi, edi
nop
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4cad8a
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax]
jge 0x4cad8a
mov edx, dword [eax + ecx*4 + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
jmp 0x4cad9e
push dword [ebx]
call fcn.00503ab0
add esp, 4
mov ecx, ebx
push eax
call fcn.004b0250
mov edx, eax
mov ecx, dword [esi + 0x3c]
push edx
add ecx, edi
call fcn.004ca2f0
mov ecx, dword [ebp - 4]
add edi, 0x58
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x24]
jl 0x4cad70
mov edi, dword [ebp + 8]
cmp dword [esi + 0x28], 0
mov dword [ebp - 4], 0
jle 0x4cae1b
lea ebx, [edi + 0x30]
xor edi, edi
nop dword [eax]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4cadea
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax]
jge 0x4cadea
mov edx, dword [eax + ecx*4 + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
jmp 0x4cadfe
push dword [ebx]
call fcn.00503c40
add esp, 4
mov ecx, ebx
push eax
call fcn.004b0250
mov edx, eax
mov ecx, dword [esi + 0x40]
push edx
add ecx, edi
call fcn.004ca620
mov ecx, dword [ebp - 4]
add edi, 0x2c
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x28]
jl 0x4cadd0
mov edi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
mov dword [ebp - 4], 0
jle 0x4cae7b
lea ebx, [edi + 0x40]
xor edi, edi
nop dword [eax]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4cae4a
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax]
jge 0x4cae4a
mov edx, dword [eax + ecx*4 + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
jmp 0x4cae5e
push dword [ebx]
call fcn.00504550
add esp, 4
mov ecx, ebx
push eax
call fcn.004b0250
mov edx, eax
mov ecx, dword [esi + 0x44]
push edx
add ecx, edi
call fcn.004cb100
mov ecx, dword [ebp - 4]
add edi, 0x18
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x2c]
jl 0x4cae30
mov edi, dword [ebp + 8]
cmp dword [esi + 4], 0
mov dword [ebp - 4], 0
jle 0x4caedb
lea ebx, [edi + 0x50]
xor edi, edi
nop dword [eax]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4caeaa
mov ecx, dword [ebx + 4]
cmp ecx, dword [eax]
jge 0x4caeaa
mov edx, dword [eax + ecx*4 + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
jmp 0x4caebe
push dword [ebx]
call fcn.00503f40
add esp, 4
mov ecx, ebx
push eax
call fcn.004b0250
mov edx, eax
mov ecx, dword [esi + 0x48]
push edx
add ecx, edi
call fcn.004ca8a0
mov ecx, dword [ebp - 4]
add edi, 0x30
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 4]
jl 0x4cae90
mov edi, dword [ebp + 8]
cmp dword [esi + 0x4c], 0x5be110
pop ebx
je 0x4caf1a
or dword [edi + 8], 8
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x4caf10
mov eax, dword [edi + 4]
and eax, 0xfffffffc
test byte [edi + 4], 1
je 0x4caf01
mov eax, dword [eax]
push eax
call fcn.00504150
add esp, 4
mov dword [edi + 0x84], eax
push dword [esi + 0x4c]
mov ecx, eax
call fcn.0050a780
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4