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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
inc ebx
push 0
mov eax, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
sub edi, dword [esi + 0x64]
shr eax, 1
add edi, 0x17
and eax, 0xffffff01
mov dword [esi + 0x54], edi
mov dword [esp + 0x14], eax
mov ecx, edi
xor eax, eax
shl ebx, cl
mov ecx, dword [esi + 0x64]
inc eax
shl eax, cl
mov dword [esp + 0x3c], eax
add eax, dword [esi + 0x78]
pop edx
adc edx, dword [esi + 0x7c]
add eax, 0xffffffff
mov dword [esi + 0x58], ebx
adc edx, 0xffffffff
cmp edx, dword [esi + 0x7c]
jb 0x4c2815
ja 0x4c26c3
cmp eax, dword [esi + 0x78]
jb 0x4c2815
call fcn.00566850
cmp byte [esp + 0x10], 0
mov ecx, edx
mov ebp, eax
mov dword [esp + 0x30], ecx
je 0x4c2709
xor edx, edx
lea eax, [ebx + 1]
add ebx, ebp
mov dword [esp + 0x14], eax
adc edx, ecx
add ebx, 0xffffffff
mov eax, ebx
mov ecx, edi
adc edx, 0xffffffff
call fcn.00566850
mov ebp, dword [esp + 0x14]
mov ecx, eax
mov eax, edx
mul ebp
mov edi, eax
mov eax, ecx
mul ebp
add edi, edx
mov ecx, eax
jmp 0x4c2727
add eax, 0xffffffff
mov ecx, edi
adc edx, 0xffffffff
call fcn.00566850
mov ecx, eax
mov edi, edx
add ecx, ebp
lea ebp, [ebx + 1]
mov dword [esp + 0x14], ebp
adc edi, dword [esp + 0x30]
mov eax, dword [esi + 0x44]
shr eax, 3
mov dword [esp + 0x34], ecx
test edi, edi
ja 0x4c2815
jb 0x4c2743
cmp ecx, eax
ja 0x4c2815
cmp byte [esp + 0x10], 0
mov dword [esi + 0x5c], ecx
jne 0x4c2757
test byte [esi + 0x70], 1
je 0x4c2757
mov bl, 1
jmp 0x4c2759
xor bl, bl
and dword [esp + 0x2c], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x3c]
movlpd qword [esp + 0x24], xmm0
test ecx, ecx
je 0x4c28c4
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], eax
mov ecx, dword [edx]
mov eax, ecx
mov edi, dword [edx + 4]
and eax, 0xffff8
or eax, 0
jne 0x4c2815
mov edx, ecx
and ecx, 7
and edx, 0xfff00000
sub dword [esp + 0x18], 1
jne 0x4c281f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp ecx, 6
jne 0x4c280d
xor bl, bl
cmp byte [esp + 0x10], bl
je 0x4c2815
mov eax, edx
or eax, edi
je 0x4c2815
mov eax, edx
mov ecx, edi
add eax, 0x100000
adc ecx, 0
cmp ecx, edi
jb 0x4c2815
ja 0x4c27f0
cmp eax, edx
jb 0x4c2815
cmp dword [esi + 0x3c], ecx
ja 0x4c2802
jb 0x4c27fc
cmp dword [esi + 0x38], eax
jae 0x4c2802
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
inc dword [esi + 0xec]
jmp 0x4c28a0
test ecx, ecx
je 0x4c28a0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp ecx, 6
je 0x4c2840
cmp ecx, 7
je 0x4c2840
cmp ecx, 3
je 0x4c283c
test ecx, ecx
je 0x4c283c
cmp ecx, 1
je 0x4c283c
cmp ecx, 2
jne 0x4c2815
xor bl, bl
jmp 0x4c28a0
mov eax, edx
or eax, edi
je 0x4c2815
cmp dword [esp + 0x20], edi
ja 0x4c285a
jb 0x4c2852
cmp ebp, edx
jae 0x4c285a
mov eax, edi
mov ebp, edx
mov dword [esp + 0x20], eax
cmp ecx, 7
jne 0x4c2869
xor bl, bl
cmp byte [esp + 0x10], bl
je 0x4c2815
jmp 0x4c289a
test bl, bl
je 0x4c289a
mov ecx, dword [esp + 0x24]
mov eax, ecx
or eax, dword [esp + 0x1c]
je 0x4c2892
mov eax, dword [esp + 0x38]
add eax, ecx
push 0
pop ecx
adc ecx, dword [esp + 0x1c]
cmp eax, edx
jne 0x4c288e
cmp ecx, edi
je 0x4c2892
xor bl, bl
jmp 0x4c289a
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
inc dword [esi + 0xe8]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
inc eax
add edx, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
cmp eax, dword [esp + 0x34]
jb 0x4c279c
mov ecx, dword [esp + 0x20]
jmp 0x4c28c8
mov ecx, dword [esp + 0x40]
mov eax, ebp
mov byte [esi + 0x129], bl
or eax, ecx
je 0x4c2919
mov edx, dword [esp + 0x38]
add edx, ebp
push 0
pop eax
adc eax, ecx
cmp eax, ecx
jb 0x4c2815
ja 0x4c28f1
cmp edx, ebp
jb 0x4c2815
cmp dword [esi + 0x3c], eax
ja 0x4c2903
jb 0x4c28fd
cmp dword [esi + 0x38], edx
jae 0x4c2903
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
cmp ecx, 0x40000000
ja 0x4c2815
jb 0x4c2919
test ebp, ebp
jae 0x4c2815
mov al, 1
jmp 0x4c2817