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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a48e4
sub esp, 0x54
mov eax, dword [esp + 0x58]
movzx ecx, word [eax]
test cx, 0x80
jne 0x4a421c
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x54
ret
mov ecx, dword [esp + 0x60]
cmp ecx, 2
jl 0x4a41d7
mov edx, dword [esp + 0x5c]
cmp byte [edx], 0x5c
jne 0x4a41d7
movzx ebx, byte [edx + 1]
cmp bl, 0x70
je 0x4a423c
cmp bl, 0x50
jne 0x4a41d7
cmp bl, 0x50
jne 0x4a48b3
mov ebx, 0xffffffff
mov dword [esp + 0x28], ebx
lea eax, [ecx - 2]
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, 2
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.004a6070
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 8]
cmp ebp, 0x7b
test eax, eax
jne 0x4a4876
cmp ebp, 0x7b
je 0x4a46a1
mov ebx, dword [esp + 0x60]
mov ebp, ebx
sub ebx, ecx
cmp ebx, ebp
ja 0x4a48da
cmp ebx, 2
jb 0x4a48ce
lea eax, [ebx - 2]
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, 2
mov esi, dword [esp + 0x5c]
add eax, esi
test ebp, ebp
je 0x4a4698
cmp byte [eax], 0x5e
jne 0x4a4698
mov edi, dword [esp + 0x28]
xchg edi, ebx
neg ebx
xchg edi, ebx
dec ebp
mov dword [esp + 0x30], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add eax, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], edi
cmp ebp, 3
jne 0x4a4579
cmp word [eax], 0x6e41
jne 0x4a4579
cmp byte [eax + 2], 0x79
jne 0x4a4579
mov eax, dword [0x596788]
mov ebp, eax
test eax, eax
je 0x4a44eb
mov ebx, dword [esp + 0x58]
movzx esi, word [ebx]
test si, 1
jne 0x4a43d6
test edi, edi
jle 0x4a43a8
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004a5880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x54
ret
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004a5a60
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x4a436f
test ebp, ebp
je 0x4a433f
mov dword [esp + 0x50], ebp
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.004a5880
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
call fcn.004a5880
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x58]
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
lea edi, [ebx + 0x20]
mov eax, dword [0x5ab4f0]
test eax, eax
jne 0x4a44df
mov dword [ebx + 0x20], edx
mov dword [esp], edi
call fcn.004a50a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4a44a9
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.004a55f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, ecx
mov ecx, edx
mov edx, ebx
jmp 0x4a436f
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.004a5770
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x4a449e
mov eax, edx
call fcn.00453b50
jmp 0x4a444e
lea eax, [0x4cf820]
mov dword [esp], eax
call fcn.0040a430
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0x4e68f0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5ab4f0]
test ecx, ecx
jne 0x4a4567
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x5013b0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x54
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.00453b50
mov eax, ecx
jmp 0x4a4524
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], eax
lea ecx, [0x4cab80]
mov dword [esp], ecx
mov edx, dword [0x59a420]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
call fcn.0040d8e0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4a45fa
mov dword [esp + 0x44], eax
lea eax, [0x4cab80]
mov dword [esp], eax
mov eax, dword [0x59a424]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.0040d8e0
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
jmp 0x4a4325
lea eax, [0x4cab80]
mov dword [esp], eax
mov ecx, dword [0x59a430]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
call fcn.0040d8e0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x4a4649
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
xor eax, eax
xor ebp, ebp
jmp 0x4a4325
mov dword [esp + 0x40], eax
lea eax, [0x4cab80]
mov dword [esp], eax
mov eax, dword [0x59a428]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.0040d8e0
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
jmp 0x4a4325
mov edi, dword [esp + 0x28]
jmp 0x4a42ef
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x7d
call fcn.00499ff0
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x4a4787
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x60]
cmp ebx, edx
ja 0x4a48c7
sub edx, ebx
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, ebx
mov esi, dword [esp + 0x5c]
add edx, esi
cmp ecx, 3
jb 0x4a48bd
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edx
lea eax, [ecx - 3]
mov dword [esp + 0x30], eax
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 3
add eax, esi
mov dword [esp + 0x4c], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004a5f80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x4a474a
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x4a42bd
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.004a5f80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4a4839
lea eax, [0x4cf820]
mov dword [esp], eax
call fcn.0040a430
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0x4e68f0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5ab4f0]
test ecx, ecx
jne 0x4a4827
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x5013b0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x54
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.00453b50
mov eax, ecx
jmp 0x4a47e4
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x54
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebx
add esp, 0x54
ret
mov ebx, 1
jmp 0x4a424a
mov eax, 3
call fcn.00453c30
mov ecx, ebx
call fcn.00453bf0
mov eax, 2
mov ecx, ebx
call fcn.00453c30
mov ecx, ebx
mov edx, ebp
call fcn.00453bf0
nop
call fcn.00452310
jmp fcn.004a41b0