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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp word [ecx + 0x14], 0
je 0x4c240f
lea eax, [esi + 0x68]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x74]
mov dword [ebp - 0x24], eax
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 0x24]
test byte [eax + edi*4], 8
je 0x4c2315
mov eax, dword [esi + 0x18]
lea edx, [eax + ebx]
mov ecx, dword [eax + ebx + 4]
cmp ecx, 4
je 0x4c229a
cmp ecx, 9
jne 0x4c22ec
mov ecx, dword [eax + ebx + 0x38]
xor ecx, 0x10
jmp 0x4c22a1
mov ecx, dword [eax + ebx + 0x38]
xor ecx, 0x18
or ecx, dword [eax + ebx + 0x3c]
jne 0x4c2315
mov ecx, dword [esi + 0x6c]
cmp ecx, dword [esi + 0x70]
jae 0x4c230c
cmp dword [eax + ebx + 0x1c], 0
jne 0x4c23f7
mov edx, dword [eax + ebx + 0x18]
mov dword [ecx], edx
cmp dword [eax + ebx + 0x24], 0
jne 0x4c23ff
mov edx, dword [eax + ebx + 0x20]
mov dword [ecx + 4], edx
cmp dword [eax + ebx + 0x3c], 0
jne 0x4c2407
mov eax, dword [eax + ebx + 0x38]
mov dword [ecx + 8], eax
add ecx, 0xc
mov dword [esi + 0x6c], ecx
jmp 0x4c2315
cmp ecx, 1
jne 0x4c2315
mov eax, dword [eax + ebx + 8]
and eax, 4
je 0x4c2315
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
je 0x4c232a
mov dword [eax], edx
add eax, 4
mov dword [esi + 0x78], eax
jmp 0x4c2315
mov ecx, dword [ebp - 0x34]
push edx
call fcn.004c2790
inc edi
movzx eax, word [esi + 0x14]
add ebx, 0x40
cmp edi, eax
jb 0x4c2270
jmp 0x4c240f
mov ecx, dword [ebp - 0x24]
sub eax, dword [ecx]
mov ecx, eax
sar ecx, 2
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x40000000
jae 0x4c2445
mov ecx, eax
sar ecx, 1
cmp ecx, dword [ebp - 0x1c]
cmovbe ecx, dword [ebp - 0x1c]
cmp eax, 0x7ffffffc
mov eax, 0x3fffffff
cmovae ecx, eax
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x4c238f
mov dword [ebp - 0x20], edx
cmp ecx, 0x40000000
jae 0x4c244d
lea eax, [ecx*4]
push eax
call fcn.0050397a
add esp, 4
mov ecx, eax
mov edx, dword [ebp - 0x20]
jmp 0x4c2391
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
lea eax, [ecx + eax*4]
mov dword [eax], edx
mov edx, eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
sub ecx, eax
sub edx, ecx
test ecx, ecx
mov dword [ebp - 0x30], edx
jle 0x4c23bf
push ecx
push eax
push edx
call fcn.00506d50
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + ecx*4]
mov edx, dword [ebp - 0x28]
lea edx, [eax + edx*4 + 4]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ecx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c2315
push eax
call fcn.005039aa
add esp, 4
jmp 0x4c2315
int3
int3
int3
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.004c02f0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x78]
push dword [esi + 0x74]
call fcn.004c28c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x24]
call fcn.00536260
call fcn.00518ff0
int3