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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x18]
mov eax, dword [eax + 0x24]
push ebx
push esi
mov dword [ebp - 0xc], edx
mov edx, dword [ecx + 4]
push edi
mov edi, dword [edx + 0x24]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, eax
jl 0x4c5d90
mov dword [ebp - 0x10], eax
mov eax, edi
cdq
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
push 0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
call fcn.00484e00
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp + 0xc], 0
cmp edi, dword [ebp - 8]
je 0x4c5dcc
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 0xc], 0
je 0x4c5dcc
mov dword [ebp + 0xc], 8
mov edi, eax
sub edi, ebx
mov ecx, edx
sbb ecx, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4c5df3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
cmp ecx, edx
jg 0x4c5dde
jl 0x4c5dfd
cmp edi, eax
jae 0x4c5dde
mov eax, dword [ebp - 8]
cdq
push edx
push eax
push ecx
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.00484c30
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
lea ecx, [eax + 1]
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
mov eax, dword [0x58e8a8]
xor edx, edx
div dword [esi + 0x24]
mov dword [ebp - 0x34], ebx
inc eax
cmp ecx, eax
je 0x4c5f16
mov eax, dword [ebp - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4c5ec2
mov esi, dword [ebp - 4]
call fcn.004c5560
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4c5ec2
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
add esi, dword [ebp - 0x38]
push edx
push eax
push ecx
push ebx
push edi
call fcn.0053ab50
add eax, dword [ebp + 0x10]
push eax
push esi
call fcn.00480500
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, edi
add esp, 0xc
or ecx, ebx
mov byte [eax], 0
jne 0x4c5ec2
cmp dword [ebp + 0x14], ecx
jne 0x4c5ec2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x30]
and edx, 0x7fffffff
bswap edx
mov dword [esi + 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, eax
test eax, eax
je 0x4c5f16
test byte [eax + 0x1c], 0x20
je 0x4c5f11
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov ebx, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ebx]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00484e00
push edx
mov edx, dword [esi + 0x48]
push eax
push ebx
call edx
add esp, 0x10
jmp 0x4c5f16
call fcn.004b0660
add edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
adc dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x4c5de7
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret