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

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor esi, esi
mov ebx, edx
movzx eax, word [edi + 0x72]
dec eax
mov dword [esp + 0x20], eax
movzx eax, word [edi + 0x70]
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], esi
je 0x4c7988
mov ebp, dword [edi + edx*8 + 0x70]
dec edx
mov eax, ebp
mov dword [esp + 0x34], edx
mov ecx, dword [edi + edx*8 + 0x7c]
mov edx, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
sar ecx, 1
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [edi + 0x40]
test eax, eax
jg 0x4c7988
jl 0x4c795d
cmp dword [esp + 0x14], ecx
jae 0x4c7988
cmp byte [edi + 0x3a], 0
je 0x4c7978
movzx eax, byte [esp + 0x40]
and ebp, 1
cdq
cmp eax, ebp
jne 0x4c7988
test edx, edx
jne 0x4c7988
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x4c7983
mov dword [ebp], edx
mov esi, 1
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], eax
je 0x4c79f6
mov edx, dword [edi + ebx*8 + 0x80]
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x84]
mov ebp, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x44]
sar ecx, 1
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [edi + 0x40]
test eax, eax
jg 0x4c79f6
jl 0x4c79cd
cmp dword [esp + 0x14], ecx
jae 0x4c79f6
cmp byte [edi + 0x3a], 0
je 0x4c79ea
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x14], edx
cdq
cmp eax, dword [esp + 0x14]
jne 0x4c79f6
test edx, edx
jne 0x4c79f6
test ebp, ebp
je 0x4c79f5
lea eax, [ebx + 1]
mov dword [ebp + esi*4], eax
inc esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c7b60
movzx eax, word [edi + 0x70]
lea edx, [edi + 0x40]
sub ebx, eax
mov ebp, edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + ebx*8 + 0x7c]
mov eax, dword [edi + ebx*8 + 0x78]
mov edi, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
sar ecx, 1
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [edx]
test eax, eax
jg 0x4c7a76
jl 0x4c7a43
cmp dword [esp + 0x14], ecx
jae 0x4c7a76
cmp byte [edi + 0x3a], 0
mov ecx, edx
je 0x4c7a66
mov ecx, dword [edi + ebx*8 + 0x78]
movzx eax, byte [esp + 0x40]
and ecx, 1
cdq
cmp eax, ecx
jne 0x4c7a76
test edx, edx
jne 0x4c7a76
lea ecx, [edi + 0x40]
lea edx, [edi + 0x40]
mov eax, dword [esp + 0x44]
mov ebp, edx
test eax, eax
je 0x4c7a75
mov dword [eax + esi*4], ebx
mov ebp, ecx
inc esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c7ae8
mov edx, dword [edi + ebx*8 + 0x70]
dec ebx
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x7c]
mov edi, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
sar ecx, 1
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [ebp]
test eax, eax
jg 0x4c7ae0
jl 0x4c7ab4
cmp dword [esp + 0x14], ecx
jae 0x4c7ae0
cmp byte [edi + 0x3a], 0
je 0x4c7ad1
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x14], edx
cdq
cmp eax, dword [esp + 0x14]
jne 0x4c7ae0
test edx, edx
jne 0x4c7ae0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7adc
mov dword [eax + esi*4], ebx
inc esi
lea ebp, [edi + 0x40]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
je 0x4c7b54
mov edx, dword [edi + ebx*8 + 0x80]
inc ebx
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x7c]
mov edi, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
sar ecx, 1
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [ebp]
test eax, eax
jg 0x4c7b50
jl 0x4c7b27
cmp dword [esp + 0x14], ecx
jae 0x4c7b50
cmp byte [edi + 0x3a], 0
je 0x4c7b44
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x1c], edx
cdq
cmp eax, dword [esp + 0x1c]
jne 0x4c7b50
test edx, edx
jne 0x4c7b50
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7b4f
mov dword [eax + esi*4], ebx
inc esi
dec ebx
lea ebp, [edi + 0x40]
movzx eax, word [edi + 0x70]
add ebx, eax
mov eax, dword [esp + 0x30]
jmp 0x4c7b63
lea ebp, [edi + 0x40]
cmp eax, dword [esp + 0x20]
je 0x4c7cb0
movzx eax, word [edi + 0x70]
add ebx, eax
mov dword [esp + 0x20], ebx
mov edx, dword [edi + ebx*8 + 0x78]
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x7c]
mov edi, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x28]
sar ecx, 1
sub dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [ebp]
test eax, eax
jg 0x4c7bd8
jl 0x4c7bac
cmp dword [esp + 0x30], ecx
jae 0x4c7bd8
cmp byte [edi + 0x3a], 0
je 0x4c7bcc
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x30], edx
cdq
cmp eax, dword [esp + 0x30]
jne 0x4c7bd8
test edx, edx
jne 0x4c7bd8
lea ebp, [edi + 0x40]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7bd7
mov dword [eax + esi*4], ebx
inc esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c7c4a
mov edx, dword [edi + ebx*8 + 0x70]
dec ebx
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x7c]
mov edi, dword [esp + 0x10]
shrd eax, ecx, 1
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x28]
sar ecx, 1
sub dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
mov ecx, dword [ebp]
test eax, eax
jg 0x4c7c42
jl 0x4c7c16
cmp dword [esp + 0x30], ecx
jae 0x4c7c42
cmp byte [edi + 0x3a], 0
je 0x4c7c33
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x28], edx
cdq
cmp eax, dword [esp + 0x28]
jne 0x4c7c42
test edx, edx
jne 0x4c7c42
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7c3e
mov dword [eax + esi*4], ebx
inc esi
lea ebp, [edi + 0x40]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
je 0x4c7cb0
mov edx, dword [edi + ebx*8 + 0x80]
inc ebx
mov eax, edx
mov ecx, dword [edi + ebx*8 + 0x7c]
shrd eax, ecx, 1
sar ecx, 1
sub dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
sbb eax, ecx
test eax, eax
jg 0x4c7cb0
jl 0x4c7c7d
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp]
jae 0x4c7cb0
cmp byte [edi + 0x3a], 0
je 0x4c7c9a
movzx eax, byte [esp + 0x40]
and edx, 1
mov dword [esp + 0x28], edx
cdq
cmp eax, dword [esp + 0x28]
jne 0x4c7cb0
test edx, edx
jne 0x4c7cb0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7ca5
mov dword [eax + esi*4], ebx
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret