Function at 0x4c1c70
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 [0x5ff014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp word [ecx + 0x14], 0
je 0x4c1e3c
lea eax, [esi + 0x68]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x74]
mov dword [ebp - 0x20], eax
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 0x24]
test byte [eax + edi*4], 8
je 0x4c1d4d
mov eax, dword [esi + 0x18]
lea ecx, [eax + ebx]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + ebx + 4]
cmp ecx, 4
je 0x4c1ccd
cmp ecx, 9
jne 0x4c1d1f
mov ecx, dword [eax + ebx + 0x38]
xor ecx, 0x10
jmp 0x4c1cd4
mov ecx, dword [eax + ebx + 0x38]
xor ecx, 0x18
or ecx, dword [eax + ebx + 0x3c]
jne 0x4c1d4d
mov ecx, dword [esi + 0x6c]
cmp ecx, dword [esi + 0x70]
jae 0x4c1d42
cmp dword [eax + ebx + 0x1c], 0
jne 0x4c1e24
mov edx, dword [eax + ebx + 0x18]
mov dword [ecx], edx
cmp dword [eax + ebx + 0x24], 0
jne 0x4c1e2c
mov edx, dword [eax + ebx + 0x20]
mov dword [ecx + 4], edx
cmp dword [eax + ebx + 0x3c], 0
jne 0x4c1e34
mov eax, dword [eax + ebx + 0x38]
mov dword [ecx + 8], eax
add ecx, 0xc
mov dword [esi + 0x6c], ecx
jmp 0x4c1d4d
cmp ecx, 1
jne 0x4c1d4d
mov eax, dword [eax + ebx + 8]
and eax, 4
je 0x4c1d4d
mov ecx, dword [esi + 0x78]
cmp ecx, dword [esi + 0x7c]
je 0x4c1d62
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
mov dword [esi + 0x78], ecx
jmp 0x4c1d4d
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x1c]
call fcn.004c2230
inc edi
movzx eax, word [esi + 0x14]
add ebx, 0x40
cmp edi, eax
jb 0x4c1ca0
jmp 0x4c1e3c
mov eax, dword [ebp - 0x20]
sub ecx, dword [eax]
mov edx, ecx
sar edx, 2
lea eax, [edx + 1]
cmp eax, 0x40000000
jae 0x4c1e72
sar ecx, 1
cmp ecx, eax
cmovb ecx, eax
mov eax, edx
mov dword [ebp - 0x24], edx
cmp edx, 0x1fffffff
mov eax, 0x3fffffff
cmovae ecx, eax
test ecx, ecx
mov dword [ebp - 0x30], ecx
je 0x4c1dbb
cmp ecx, 0x40000000
jae 0x4c1e7a
lea eax, [ecx*4]
push eax
call fcn.00503d75
add esp, 4
mov ecx, eax
jmp 0x4c1dbd
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
lea edx, [ecx + eax*4]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
sub ecx, eax
sub edx, ecx
test ecx, ecx
mov dword [ebp - 0x28], edx
jle 0x4c1dec
push ecx
push eax
push edx
call fcn.00507560
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + ecx*4]
mov edx, dword [ebp - 0x24]
lea edx, [eax + edx*4 + 4]
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c1d4d
push eax
call fcn.00503da5
add esp, 4
jmp 0x4c1d4d
int3
int3
int3
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.004bfd80
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x78]
push dword [esi + 0x74]
call fcn.004c2360
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504596
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x20]
call fcn.00534620
call fcn.00517b60
int3