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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x270], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0
push edi
test ecx, ecx
je 0x4c7954
test eax, 0x200
mov edi, 0
cmovne ecx, edi
mov dword [esp + 0x20], ecx
xor edi, edi
mov byte [esp + 0x78], 0
xor ecx, ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x177], 0
mov dword [esp + 0x10], ecx
test edx, edx
je 0x4c7a34
test esi, esi
je 0x4c7a34
cmp byte [esi], 0x40
jne 0x4c79ea
mov al, byte [esi + 1]
test al, al
je 0x4c79ea
cmp al, 0x40
je 0x4c79ea
lea edi, [esp + 0x78]
mov al, 0x40
movsx eax, al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x4c79bc
lea eax, [esp + 0x176]
cmp edi, eax
jae 0x4c79bc
movzx eax, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov al, byte [esi]
test al, al
jne 0x4c7993
movsx eax, byte [esi]
mov byte [edi], 0
mov edi, dword [ebp + 0x18]
cmp ebx, edi
push eax
cmovl edi, ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
lea ecx, [esi + 1]
test eax, eax
cmove ecx, esi
mov esi, ecx
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4c7a2e
push 0x40
push esi
call fcn.00518fc0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4c7a2e
lea eax, [esi + 1]
cmp ecx, eax
jbe 0x4c7a2e
cmp byte [ecx - 1], 0x40
je 0x4c7a2e
push 0xff
push ecx
lea eax, [esp + 0x17f]
push eax
call fcn.004e0740
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, eax
cmovl eax, ebx
mov dword [esp + 0x10], eax
mov ecx, eax
jmp 0x4c7a30
xor ecx, ecx
mov eax, dword [esp + 0x18]
lea edx, [ecx + edi]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4c7a4f
test eax, 0x100
je 0x4c7a4f
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
jmp 0x4c7a57
mov dword [esp + 0x54], 0
mov dword [esp + 0x14], 0
test esi, esi
je 0x4c7b10
and eax, 0x80
mov ecx, esi
mov dword [esp + 0x44], eax
xor esi, esi
mov eax, ebx
mov ebx, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
sub eax, edx
xor edi, edi
movd xmm0, eax
mov eax, dword [esp + 0x48]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
push eax
push ebx
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
sub esp, 8
lea eax, [esp + 0x64]
movsd qword [esp], xmm0
push 0
push eax
push ecx
call fcn.004c7620
movsd xmm1, qword [esp + 0x8c]
add esp, 0x24
movd xmm0, edi
mov ecx, eax
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x4c7ad5
cvttsd2si edi, xmm1
mov al, byte [ecx]
inc esi
test al, al
je 0x4c7af6
cmp al, 0x40
mov eax, dword [esp + 0x48]
jne 0x4c7aee
cmp byte [ecx + 1], 0x40
je 0x4c7aee
test eax, eax
jne 0x4c7af6
movsd xmm0, qword [esp + 0x60]
jmp 0x4c7a94
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
jmp 0x4c7b16
xor eax, eax
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x4c7b20
cmp dword [esp + 0x10], edi
je 0x4c7b62
test eax, eax
je 0x4c7b62
test edi, edi
je 0x4c7b41
mov ecx, dword [0x599954]
mov eax, dword [ecx]
call dword [eax + 0x168]
mov edi, eax
imul edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c7b66
mov ecx, dword [0x599954]
mov edx, dword [ecx]
call dword [edx + 0x168]
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
jmp 0x4c7b66
mov eax, dword [esp + 0x10]
mov ecx, dword [0x599954]
add eax, edi
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
call dword [edx + 0x168]
mov ecx, dword [0x599954]
imul eax, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [esp + 0x40], eax
call dword [edx + 0x168]
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 8
not edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
and edx, 1
mov dword [esp + 0x60], edx
test eax, eax
je 0x4c7bb8
test edx, edx
je 0x4c7bb8
mov edx, dword [eax + 8]
jmp 0x4c7bba
xor edx, edx
mov eax, ecx
mov dword [esp + 0x50], 0
and eax, 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], eax
je 0x4c7bfd
mov eax, dword [esp + 0x2c]
mov ebx, dword [ebp + 0x10]
dec eax
imul eax, dword [esp + 0x38]
sub ebx, eax
mov eax, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x34]
sub eax, edx
add eax, dword [ebp + 0x18]
jmp 0x4c7c2b
test cl, 1
je 0x4c7c0b
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x38]
jmp 0x4c7c2b
mov ecx, dword [esp + 0x38]
imul ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x38]
add eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4c7dad
cmp dword [esp + 0x60], 0
je 0x4c7cc8
test cl, 0x20
jne 0x4c7dad
mov eax, dword [edx + 4]
mov edx, eax
test eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], eax
cmovle edx, dword [esp + 0x40]
mov dword [esp + 0x28], edx
test cl, 4
jne 0x4c7c94
mov edi, ebx
sub edi, eax
test cl, 8
je 0x4c7c7f
sub edi, dword [esp + 0x10]
jmp 0x4c7c94
sub edi, dword [esp + 0x30]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x34]
sar edi, 1
add edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 0
push dword [ecx + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x48]
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add eax, dword [ecx + 8]
jmp 0x4c7da9
mov edx, dword [edx + 4]
mov eax, ecx
and eax, 4
test cl, 0x20
je 0x4c7d15
mov dword [esp + 0x3c], edx
test eax, eax
je 0x4c7ce9
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
add eax, edi
inc edx
jmp 0x4c7d49
mov eax, ebx
sub eax, edx
test cl, 8
je 0x4c7cfc
mov edx, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
inc edx
jmp 0x4c7d49
sub eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
mov edx, dword [ebp + 0xc]
sar eax, 1
add eax, edi
add eax, dword [esp + 0x14]
inc edx
jmp 0x4c7d49
mov dword [esp + 0x50], edx
test eax, eax
je 0x4c7d25
mov eax, dword [ebp + 0xc]
dec eax
add eax, edi
jmp 0x4c7d4b
mov eax, ebx
sub eax, edx
test cl, 8
je 0x4c7d38
sub eax, dword [esp + 0x10]
sub eax, dword [esp + 0x14]
jmp 0x4c7d45
sub eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
test cl, 1
jne 0x4c7d87
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x40]
sub ecx, eax
cmp dword [esp + 0x44], 0
je 0x4c7d79
dec edx
add edx, ecx
jmp 0x4c7d87
lea eax, [ecx - 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
add edx, eax
mov ecx, dword [esp + 0x20]
push 0
push 0
push dword [ecx + 8]
mov eax, dword [ecx]
push dword [ecx + 4]
push edx
push dword [esp + 0x28]
call dword [eax + 0x24]
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4c7f43
mov ecx, dword [0x599954]
mov eax, dword [ecx]
call dword [eax + 0x16c]
mov ecx, dword [esp + 0x18]
mov edx, ecx
and edx, 4
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x2c], 1
movsd xmm2, qword [0x55cb60]
jle 0x4c7e38
push dword [esp + 0x48]
and ecx, 0x80
lea eax, [esp + 0x6c]
push ecx
push eax
lea eax, [esp + 0x64]
push eax
mov eax, ebx
sub esp, 8
sub eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x48]
movd xmm0, eax
lea eax, [esp + 0x64]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0
push eax
push esi
call fcn.004c7620
movsd xmm2, qword [0x55cb60]
add esp, 0x24
mov ecx, dword [esp + 0x18]
mov esi, eax
jmp 0x4c7e3d
mov esi, 0x55e0cc
movd xmm0, dword [esp + 0x28]
movsd xmm1, qword [esp + 0x68]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x4c7e62
movaps xmm0, xmm1
addsd xmm0, xmm2
cvttsd2si eax, xmm0
mov dword [esp + 0x28], eax
cmp dword [esp + 0x40], 0
je 0x4c7e6f
mov ecx, dword [esp + 0x50]
jmp 0x4c7eac
movaps xmm0, xmm1
addsd xmm0, xmm2
test cl, 8
je 0x4c7e8d
cvttsd2si eax, xmm0
mov ecx, ebx
sub ecx, eax
sub ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x10]
jmp 0x4c7eae
cvttsd2si ecx, xmm0
mov eax, ebx
sub eax, ecx
sub eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x50]
add ecx, edi
push dword [esp + 0x14]
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push dword [esp + 0x60]
mov dword [esp + 0x40], eax
push dword [esp + 0x58]
call dword [esp + 0x6c]
mov edx, dword [0x59ab88]
add esp, 0x10
test edx, edx
je 0x4c7f1f
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
jb 0x4c7f1f
mov eax, dword [esp + 0x58]
add eax, ecx
cmp edx, eax
jae 0x4c7f1f
push dword [esp + 0x14]
sub edx, ecx
mov ecx, dword [0x599954]
push edx
push dword [esp + 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x160]
call eax
fstp qword [esp + 0x74]
cvttsd2si eax, qword [esp + 0x74]
add eax, dword [esp + 0x38]
push eax
push 1
push 0x56eb70
call dword [esp + 0x6c]
add esp, 0x10
mov al, byte [esi]
test al, al
je 0x4c7f43
cmp al, 0x40
jne 0x4c7f2e
cmp byte [esi + 1], al
jne 0x4c7f43
mov eax, dword [esp + 0x38]
add dword [esp + 0x1c], eax
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
jmp 0x4c7dda
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x4c7faf
cmp dword [esp + 0x60], 0
je 0x4c7faf
test cl, 0x20
je 0x4c7faf
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp esi, eax
cmovg eax, esi
mov dword [esp + 0x28], eax
test cl, 4
je 0x4c7f74
mov eax, edi
jmp 0x4c7f8e
mov eax, ebx
sub eax, esi
test cl, 8
je 0x4c7f83
sub eax, dword [esp + 0x10]
jmp 0x4c7f8e
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
add eax, edi
mov ecx, dword [esp + 0x20]
push 0
push 0
push dword [ecx + 8]
mov edx, dword [ecx]
push esi
push dword [esp + 0x2c]
mov esi, dword [ebp + 0xc]
add eax, esi
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x18]
jmp 0x4c7fb2
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x4c8039
test cl, 4
je 0x4c7fc3
mov edi, esi
jmp 0x4c7fe0
mov eax, ebx
sub eax, dword [esp + 0x28]
sub eax, dword [esp + 0x30]
test cl, 8
je 0x4c7fd7
lea edi, [eax + esi]
jmp 0x4c7fe0
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, esi
cmp dword [esp + 0x44], 0
je 0x4c7ff3
mov esi, dword [ebp + 0x10]
sub esi, dword [esp + 0x24]
add esi, dword [ebp + 0x18]
jmp 0x4c800e
test cl, 1
je 0x4c7ffd
mov esi, dword [ebp + 0x10]
jmp 0x4c800e
mov eax, dword [ebp + 0x18]
sub eax, dword [esp + 0x24]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp + 0x10]
mov ecx, dword [0x599954]
mov edx, dword [ecx]
call dword [edx + 0x12c]
push eax
mov eax, dword [esp + 0x28]
push eax
push eax
push esi
lea eax, [esp + 0x88]
push edi
push eax
call fcn.004cca60
mov edi, dword [esp + 0x3c]
add esp, 0x18
cmp dword [esp + 0x10], 0
je 0x4c80c5
mov ecx, dword [esp + 0x18]
test cl, 4
je 0x4c8055
mov ebx, dword [esp + 0x28]
add ebx, edi
jmp 0x4c8079
test cl, 8
je 0x4c8062
mov edi, dword [esp + 0x10]
sub ebx, edi
jmp 0x4c807d
sub ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x30]
mov eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
add ebx, edi
add ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 0xc]
add esi, ebx
mov ebx, dword [ebp + 0x10]
test cl, 2
je 0x4c8091
sub ebx, edi
add ebx, dword [ebp + 0x18]
jmp 0x4c80a2
test cl, 1
jne 0x4c80a2
mov eax, dword [ebp + 0x18]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add ebx, eax
mov ecx, dword [0x599954]
mov eax, dword [ecx]
call dword [eax + 0x12c]
push eax
push edi
push edi
push ebx
lea eax, [esp + 0x187]
push esi
push eax
call fcn.004cca60
add esp, 0x18
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00515f8b
mov esp, ebp
pop ebp
ret