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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a3c84
sub esp, 0x54
mov eax, dword [esp + 0x58]
movzx ecx, word [eax]
test cx, 0x80
jne 0x4a35bc
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 0x4a3577
mov edx, dword [esp + 0x5c]
cmp byte [edx], 0x5c
jne 0x4a3577
movzx ebx, byte [edx + 1]
cmp bl, 0x70
je 0x4a35dc
cmp bl, 0x50
jne 0x4a3577
cmp bl, 0x50
jne 0x4a3c53
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.004a5410
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 0x4a3c16
cmp ebp, 0x7b
je 0x4a3a41
mov ebx, dword [esp + 0x60]
mov ebp, ebx
sub ebx, ecx
cmp ebx, ebp
ja 0x4a3c7a
cmp ebx, 2
jb 0x4a3c6e
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 0x4a3a38
cmp byte [eax], 0x5e
jne 0x4a3a38
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 0x4a3919
cmp word [eax], 0x6e41
jne 0x4a3919
cmp byte [eax + 2], 0x79
jne 0x4a3919
mov eax, dword [0x59a768]
mov ebp, eax
test eax, eax
je 0x4a388b
mov ebx, dword [esp + 0x58]
movzx esi, word [ebx]
test si, 1
jne 0x4a3776
test edi, edi
jle 0x4a3748
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.004a4c20
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.004a4e00
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
jmp 0x4a370f
test ebp, ebp
je 0x4a36df
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.004a4c20
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.004a4c20
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 [0x5af4d0]
test eax, eax
jne 0x4a387f
mov dword [ebx + 0x20], edx
mov dword [esp], edi
call fcn.004a4440
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4a3849
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.004a4990
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 0x4a370f
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.004a4b10
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x4a383e
mov eax, edx
call fcn.00453b50
jmp 0x4a37ee
lea eax, [0x4d1880]
mov dword [esp], eax
call fcn.0040a430
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0x4e8952]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5af4d0]
test ecx, ecx
jne 0x4a3907
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, [0x503890]
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 0x4a38c4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x48], eax
lea ecx, [0x4ccbe0]
mov dword [esp], ecx
mov edx, dword [0x59e400]
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 0x4a399a
mov dword [esp + 0x44], eax
lea eax, [0x4ccbe0]
mov dword [esp], eax
mov eax, dword [0x59e404]
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 0x4a36c5
lea eax, [0x4ccbe0]
mov dword [esp], eax
mov ecx, dword [0x59e410]
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 0x4a39e9
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 0x4a36c5
mov dword [esp + 0x40], eax
lea eax, [0x4ccbe0]
mov dword [esp], eax
mov eax, dword [0x59e408]
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 0x4a36c5
mov edi, dword [esp + 0x28]
jmp 0x4a368f
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.0049a7d0
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x4a3b27
lea ebx, [ecx + 1]
mov edx, dword [esp + 0x60]
cmp ebx, edx
ja 0x4a3c67
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 0x4a3c5d
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.004a5320
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x4a3aea
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 0x4a365d
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.004a5320
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4a3bd9
lea eax, [0x4d1880]
mov dword [esp], eax
call fcn.0040a430
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0x4e8952]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5af4d0]
test ecx, ecx
jne 0x4a3bc7
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, [0x503890]
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 0x4a3b84
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 0x4a35ea
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.004a3550