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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edi
cmp dword [edi + 0x24], 0
mov eax, dword [edi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x38], 0
movq qword [esp + 0x78], xmm0
mov dword [esp + 0x3c], eax
jne 0x4c5bc6
cmp byte [eax + 0x51], 0
jne 0x4c5bc6
call fcn.004c4fb0
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
je 0x4c5bc6
push 0
push 0
push 0x7c
mov edx, esi
mov ecx, edi
call fcn.004e21e0
mov ecx, eax
add esp, 0xc
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
test ecx, ecx
jne 0x4c536a
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, ecx
je 0x4c5360
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
add ecx, 0x38
push 0
call fcn.0047cae0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4c536a
cmp dword [esi + 0x10], 0
jne 0x4c536a
mov dword [esp + 0x10], 0
jmp 0x4c5372
mov dword [esp + 0x10], 1
mov edx, esi
mov ecx, edi
call fcn.004c05c0
test eax, eax
jne 0x4c5bc6
cmp dword [esp + 0x5c], eax
mov edx, esi
mov ecx, edi
setne al
push eax
call fcn.004c50c0
add esp, 4
test eax, eax
jne 0x4c5bc6
mov edx, dword [esi + 0x48]
mov ecx, dword [esp + 0x3c]
call fcn.004d5220
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
add ecx, ecx
mov edx, 9
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, edi
push 0
push dword [esi]
call fcn.004bcbb0
add esp, 0xc
mov dword [esp + 0x40], eax
cmp eax, 1
je 0x4c5bc6
mov ecx, dword [esp + 0x58]
xor edx, edx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], edx
mov dword [ecx + 0x34], eax
inc dword [edi + 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x28]
test eax, eax
je 0x4c5410
nop
inc ecx
inc edx
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4c5400
mov dword [esp + 0x50], edx
cmp dword [esp + 0x64], 0
je 0x4c542f
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x28], edi
mov dword [edi + 0xf0], eax
jmp 0x4c543f
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
mov esi, dword [edi + 8]
mov dword [esp + 0x60], esi
test esi, esi
jne 0x4c5470
cmp dword [edi + 0x74], esi
jne 0x4c545b
mov eax, dword [edi]
test byte [eax + 0x4c], 8
jne 0x4c545b
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00499460
mov esi, eax
mov dword [esp + 0x60], eax
test esi, esi
je 0x4c57c8
cmp byte [edi + 0x12], 0
jne 0x4c547d
or dword [esi + 0x98], 0x20
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004c3820
add esp, 4
cmp dword [esp + 0x64], 0
je 0x4c54bc
push dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, edi
push 0
push 0
push dword [esp + 0x54]
call fcn.004c5110
mov eax, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x6c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x80]
mov edx, dword [esp + 0x48]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], eax
call fcn.004aef90
test eax, eax
jne 0x4c57c8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x4c5532
cmp byte [edi + 0x12], 0
jne 0x4c5532
cmp dword [edi + 0x78], 0
jne 0x4c5532
inc dword [edi + 0x2c]
mov edx, 0x46
mov eax, dword [edi + 0x2c]
mov ecx, esi
push eax
push 0
mov dword [esp + 0x5c], eax
call fcn.004998d0
add esp, 8
cmp dword [esp + 0x40], 0
jne 0x4c55e6
cmp dword [esp + 0x48], 0
jne 0x4c55e6
cmp dword [esp + 0x10], 0
jne 0x4c55e6
mov eax, dword [esp + 8]
cmp dword [eax + 0x38], 0
jne 0x4c55e6
push dword [eax]
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 1
push dword [eax + 0x1c]
call fcn.004bcc40
mov ecx, dword [esp + 0x14]
add esp, 0xc
test byte [ecx + 0x24], 0x20
jne 0x4c55ab
mov edx, dword [esp + 0x54]
or eax, 0xffffffff
push 0xffffffffffffffff
push dword [ecx]
test edx, edx
cmovne eax, edx
mov edx, 0x89
push eax
push dword [esp + 0x24]
push dword [ecx + 0x1c]
mov ecx, esi
call fcn.00499c10
mov ecx, dword [esp + 0x1c]
add esp, 0x14
mov eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4c5b6c
mov edi, eax
nop dword [eax]
push dword [esp + 0x18]
mov edx, 0x89
mov ecx, esi
push dword [edi + 0x2c]
call fcn.004998d0
mov edi, dword [edi + 0x14]
add esp, 8
test edi, edi
jne 0x4c55c0
mov edi, dword [esp + 0xc]
jmp 0x4c5b6c
test byte [esp + 0x98], 0x40
mov eax, 1
cmove eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x41c
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 8]
test byte [eax + 0x24], 0x20
jne 0x4c5643
inc dword [edi + 0x2c]
mov edx, 0x49
mov eax, dword [edi + 0x2c]
mov ecx, esi
push eax
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x70], eax
call fcn.004998d0
add esp, 8
jmp 0x4c5695
mov ecx, eax
call fcn.004be3f0
mov dword [esp + 0x10], eax
movzx ecx, word [eax + 0x32]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], ecx
movsx ecx, cx
push ecx
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x48], edx
mov ecx, esi
mov edx, dword [edi + 0x28]
mov dword [edi + 0x2c], eax
mov dword [esp + 0x38], edx
push edx
lea eax, [edx + 1]
mov edx, 0x70
mov dword [edi + 0x28], eax
call fcn.004998d0
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0049a7b0
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [esp + 0x58]
inc eax
push eax
push dword [esp + 0x44]
push 0
push 0
push dword [esp + 0x58]
call fcn.004f3d30
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x74], ecx
test ecx, ecx
je 0x4c57c8
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x40], eax
movzx eax, byte [ecx + 0x31]
mov dword [esp + 0x24], eax
cmp eax, 1
je 0x4c56ec
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4c5706
push 1
push eax
mov edx, 0x53
mov ecx, esi
call fcn.004998d0
add esp, 8
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4c5766
mov eax, dword [esp + 0x18]
xor ecx, ecx
cwde
mov dword [esp + 0x30], ecx
test eax, eax
jle 0x4c575c
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x44]
add eax, ecx
push eax
mov eax, dword [edx + 4]
mov edx, edi
movsx eax, word [eax + ecx*2]
mov ecx, esi
push eax
push dword [esp + 0x1c]
call fcn.004b4a80
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x18]
inc ecx
movsx eax, dx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
cmp ecx, eax
jl 0x4c5721
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
jmp 0x4c5789
inc dword [edi + 0x2c]
mov ecx, esi
mov eax, dword [edi + 0x2c]
mov edx, dword [esp + 8]
push eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.004b4a80
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x4c5896
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
movzx eax, ax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
add eax, 2
cdq
push edx
push eax
call fcn.00478070
mov ecx, eax
add esp, 8
mov dword [esp + 0x4c], ecx
test ecx, ecx
jne 0x4c5838
mov ecx, dword [esp + 0x74]
call fcn.004f4870
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c57da
mov dword [eax + 0xf0], ecx
mov esi, dword [esp + 0x3c]
mov ecx, esi
mov edx, dword [esp + 0x58]
call fcn.004c2fd0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c57fa
mov edx, eax
mov ecx, esi
call fcn.004b03b0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4c5c0e
test esi, esi
je 0x4c5c05
cmp dword [esi + 0x1e8], 0
je 0x4c5bd3
mov edx, ecx
mov ecx, esi
call fcn.00477ca0
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x50]
inc eax
push eax
push 1
push ecx
call fcn.00639370
mov eax, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov byte [eax + ecx + 1], 0
mov eax, dword [esp + 0x78]
test eax, eax
js 0x4c5868
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x40]
test eax, eax
js 0x4c5876
sub eax, edx
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c5887
mov edx, eax
mov ecx, esi
call fcn.0049a5b0
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x70], eax
jmp 0x4c5927
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c5902
inc dword [edi + 0x2c]
mov edx, ecx
mov eax, dword [edi + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
movsx esi, ax
push esi
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x38], 0
call fcn.004cc030
mov ecx, dword [esp + 0x68]
add esp, 4
mov edx, 0x5c
push eax
push dword [esp + 0x14]
push esi
push dword [esp + 0x54]
call fcn.00499c10
add esp, 0x14
mov edx, 0x84
push esi
push dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov ecx, esi
push dword [esp + 0x14]
push dword [esp + 0x40]
call fcn.00499e40
add esp, 0x10
jmp 0x4c591e
push eax
push dword [esp + 0x6c]
mov edx, 0x93
mov dword [esp + 0x38], 1
mov ecx, esi
call fcn.004998d0
add esp, 8
mov ecx, dword [esp + 0x74]
call fcn.004f4870
cmp dword [esp + 0x64], 0
jne 0x4c5987
cmp dword [esp + 0x24], 2
mov dword [esp + 0x20], 0
jne 0x4c594d
mov edx, 0x11
mov ecx, esi
call fcn.00499810
mov dword [esp + 0x20], eax
mov edx, dword [esp + 8]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push dword [esp + 0x54]
push dword [esp + 0x20]
push 8
push 0x62
call fcn.004cf6a0
mov eax, dword [esp + 0x3c]
add esp, 0x18
cmp eax, 2
jne 0x4c598b
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.0049a2c0
jmp 0x4c598f
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c59d3
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x1c]
cmp dword [ecx + 0x38], 0
jne 0x4c5a53
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x14]
cmp byte [eax + edx], 0
je 0x4c5a49
mov eax, dword [esp + 0x30]
mov ecx, esi
cwde
push eax
push dword [esp + 0x10]
push dword [esp + 0x78]
push edx
mov edx, 0x1c
call fcn.00499e40
add esp, 0x10
jmp 0x4c5a41
cmp dword [esp + 0x10], 0
mov ecx, esi
je 0x4c5a26
push dword [esp + 0x34]
mov edx, 0x24
call fcn.00499870
mov dword [esp + 0x3c], eax
add esp, 4
mov eax, dword [esp + 8]
mov ecx, esi
push dword [esp + 0xc]
cmp dword [eax + 0x38], 0
je 0x4c5a13
push 0
push dword [esp + 0x3c]
mov edx, 0x5a
call fcn.004997a0
jmp 0x4c5a3e
push dword [esp + 0x38]
mov edx, 0x7f
call fcn.004998d0
add esp, 8
jmp 0x4c5a41
push dword [esp + 0xc]
mov edx, 0x29
push 0
push dword [esp + 0x70]
call fcn.004997a0
mov dword [esp + 0x44], eax
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x38], 0
je 0x4c5ae4
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4c5a71
mov ecx, dword [esp + 0x3c]
cmp dword [eax], ecx
je 0x4c5a6d
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4c5a62
mov dword [esp + 0x20], eax
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.004e7cb0
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
cmp dword [esp + 0x24], 1
mov byte [ecx + 0x15], 1
jne 0x4c5aae
push dword [esp + 0x14]
mov edx, 0x75
mov ecx, esi
call fcn.00499870
add esp, 4
cmp dword [edi + 0x74], 0
jne 0x4c5aae
mov byte [edi + 0x14], 0
push 0xfffffffffffffff4
push dword [esp + 0x24]
mov edx, 0xa
mov ecx, esi
push dword [esp + 0x14]
push 1
push 0
call fcn.00499c10
mov eax, dword [esi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x4c5b1b
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4c5b1b
push dword [esp + 0x40]
cmp byte [edi + 0x12], 0
mov ecx, edi
push dword [esp + 0x28]
sete al
push 0xb
movzx eax, al
push eax
push dword [esp + 0x40]
push dword [esp + 0x20]
push dword [esp + 0x84]
push edx
push dword [esp + 0x7c]
mov edx, dword [esp + 0x2c]
call fcn.004c5c30
add esp, 0x24
cmp dword [esp + 0x24], 0
mov ecx, esi
je 0x4c5b38
mov edx, dword [esp + 0x70]
call fcn.00499f90
mov ecx, dword [esp + 0x74]
call fcn.004f4870
jmp 0x4c5b6c
cmp dword [esp + 0x10], 0
je 0x4c5b58
mov eax, dword [esp + 0x38]
mov edx, 5
inc eax
push eax
push dword [esp + 0x38]
call fcn.004998d0
add esp, 8
jmp 0x4c5b61
mov edx, dword [esp + 0x38]
call fcn.00499940
mov edx, dword [esp + 0x38]
mov ecx, esi
call fcn.0049a2c0
cmp byte [edi + 0x12], 0
jne 0x4c5b85
cmp dword [edi + 0x78], 0
jne 0x4c5b85
cmp dword [edi + 0x70], 0
je 0x4c5b85
mov ecx, edi
call fcn.004cc520
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4c57c8
push 1
push eax
mov edx, 0x51
mov ecx, esi
call fcn.004998d0
mov edx, 1
mov ecx, esi
call fcn.0049b9c0
push 0
push 0x708574
push 0
xor edx, edx
mov ecx, esi
call fcn.0049ba80
add esp, 0x14
jmp 0x4c57c8
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
jmp 0x4c57d0
cmp ecx, dword [esi + 0x138]
jb 0x4c5c05
cmp ecx, dword [esi + 0x13c]
jae 0x4c5c05
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00477c30
add esp, 4
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.0062063b
mov esp, ebp
pop ebp
ret