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

Disassembly:
mov ecx, dword [0x58f5c4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a08d2
sub esp, 0x68
mov eax, dword [esp + 0x6c]
movzx ecx, byte [eax + 5]
test cl, cl
je 0x4a0368
mov ecx, dword [eax + 0x14]
jmp 0x4a036f
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x4c], ecx
lea edx, [eax + 0x18]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0x44
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0xc], xmm0
mov edx, dword [esp + 0x7c]
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
call fcn.004756a0
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 1]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp cl, 0x2d
je 0x4a03c8
cmp cl, 0x2b
jne 0x4a03d8
dec ebx
mov ecx, ebx
neg ecx
sar ecx, 0x1f
and ecx, 1
dec edx
add eax, ecx
jmp 0x4a03db
mov byte [eax], 0x2b
mov ecx, dword [esp + 0x6c]
movzx ebp, byte [ecx + 9]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a03fb
cmp byte [eax], 0x2b
jne 0x4a03fb
movzx ebp, byte [ecx + 7]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4a03fb
mov byte [eax], 0x20
movzx ebp, byte [eax + 1]
xchg ebp, eax
cmp al, 0x49
xchg ebp, eax
je 0x4a04aa
xchg ebp, eax
cmp al, 0x4e
xchg ebp, eax
je 0x4a04aa
movzx ebp, byte [ecx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a0508
mov ebp, dword [esp + 0x7c]
cmp ebp, 0x62
je 0x4a0508
cmp ebp, 0x67
jg 0x4a0441
cmp ebp, 0x47
je 0x4a044b
cmp ebp, 0x67
je 0x4a044b
jmp 0x4a045b
cmp ebp, 0x76
je 0x4a044b
cmp ebp, 0x78
jne 0x4a045b
mov esi, dword [esp + 0x4c]
cmp esi, 0xffffffff
jne 0x4a045d
mov esi, 6
jmp 0x4a045d
xor esi, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2f], 0
mov word [esp + 0x33], 0
mov edi, 1
xor edi, edi
xchg edi, eax
mov byte [esp + 0x35], al
xchg edi, eax
xor edi, edi
xchg edi, eax
mov byte [esp + 0x37], al
xchg edi, eax
xor edi, edi
mov dword [esp + 0x38], edi
mov edi, 6
mov dword [esp + 0x3c], edi
lea edi, [esp + 0x2f]
mov dword [esp + 0x5c], edi
mov edi, 1
jmp 0x4a05eb
movzx ebp, byte [ecx + 0xa]
xchg ebp, eax
mov byte [esp + 0x36], al
xchg ebp, eax
mov byte [ecx + 0xa], 0
cmp byte [eax + 1], 0x4e
jne 0x4a04e4
movzx esi, byte [ecx + 9]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a04e4
movzx esi, byte [ecx + 7]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a04e4
dec ebx
mov esi, ebx
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
dec edx
add eax, esi
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0049f0a0
movzx eax, byte [esp + 0x36]
mov ecx, dword [esp + 0x6c]
mov byte [ecx + 0xa], al
add esp, 0x68
ret
movzx ebp, byte [ecx + 7]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4a051b
cmp byte [eax], 0x2b
je 0x4a05ba
movzx ebp, byte [ecx + 0xa]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a05a2
movzx ebp, byte [ecx + 4]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a05a2
cmp dword [ecx + 0x10], edx
jle 0x4a05a2
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
mov edx, dword [ecx]
movzx ebx, byte [eax]
mov dword [esp], edx
mov byte [esp + 4], bl
call fcn.004a0a80
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x10]
mov dword [esp], eax
mov edx, dword [esp + 0x40]
sub ecx, edx
mov dword [esp + 4], ecx
call fcn.0049ef80
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
dec eax
mov ecx, dword [esp + 0x40]
dec ecx
mov edx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebx, dword [esp + 0x60]
add eax, ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.004a08e0
add esp, 0x68
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0049f0a0
add esp, 0x68
ret
mov dword [esp], ecx
lea ecx, [ebx - 1]
dec edx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add eax, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0049f0a0
add esp, 0x68
ret
inc edi
mov byte [esp + 0x35], cl
mov ecx, dword [esp + 0x6c]
cmp edx, edi
jle 0x4a07b0
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], esi
movzx ecx, byte [eax + edi]
cmp cl, 0x45
ja 0x4a0628
cmp cl, 0x2e
jne 0x4a061e
movzx ecx, byte [esp + 0x35]
mov ecx, 1
mov byte [esp + 0x37], cl
movzx ecx, byte [esp + 0x35]
jmp 0x4a05e2
cmp cl, 0x45
je 0x4a063a
jmp 0x4a06f3
cmp cl, 0x50
je 0x4a070e
cmp cl, 0x65
jne 0x4a06ee
cmp ebp, 0x78
je 0x4a06f3
cmp ebp, 0x58
je 0x4a06f3
sub edx, edi
mov ecx, dword [esp + 0x38]
lea ebp, [ecx + edx]
sub ebx, edi
neg ebx
sar ebx, 0x1f
and ebx, edi
add ebx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
jae 0x4a06b0
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x4b60c0]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x5c]
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0046df60
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x48]
mov edx, edi
movzx ecx, byte [esp + 0x35]
mov esi, dword [esp + 0x58]
jmp 0x4a05e2
cmp cl, 0x70
je 0x4a070e
cmp cl, 0x30
setne cl
movzx ebx, byte [esp + 0x35]
or ecx, ebx
test cl, cl
je 0x4a0705
dec esi
mov ebx, dword [esp + 0x44]
jmp 0x4a05e2
sub edx, edi
mov ecx, dword [esp + 0x38]
lea ebp, [ecx + edx]
sub ebx, edi
neg ebx
sar ebx, 0x1f
and ebx, edi
add ebx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
jae 0x4a0772
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x4b60c0]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x5c]
add ecx, esi
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0046df60
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x48]
mov edx, edi
movzx ecx, byte [esp + 0x35]
mov esi, dword [esp + 0x58]
jmp 0x4a05e2
movzx ebp, byte [esp + 0x37]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4a0813
cmp edx, 2
jne 0x4a07c7
cmp byte [eax + 1], 0x30
jne 0x4a07c7
dec esi
inc edx
cmp ebx, edx
jae 0x4a0806
mov dword [esp + 0x50], esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x4b60c0]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
mov byte [edx + eax - 1], 0x2e
jmp 0x4a0813
mov byte [edx + eax - 1], 0x30
dec esi
test esi, esi
jle 0x4a0858
inc edx
cmp ebx, edx
jae 0x4a080d
mov dword [esp + 0x4c], esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x4b60c0]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x4c]
jmp 0x4a080d
mov ebp, dword [esp + 0x38]
lea esi, [ebp + edx]
cmp ebx, esi
jae 0x4a089a
mov dword [esp + 0x40], edx
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
lea eax, [0x4b60c0]
mov dword [esp + 0x10], eax
call fcn.00453590
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], eax
lea ecx, [eax + edx]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0046df60
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x44]
jmp 0x4a0508
call fcn.0046c370
jmp fcn.004a0340