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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a634d
sub esp, 0x74
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], eax
jmp 0x4a6149
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x3c], eax
jg 0x4a6155
jmp 0x4a617f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, 0x10000
jge 0x4a616f
jmp 0x4a6175
inc dword [esp + 0x20]
jmp 0x4a6177
jmp 0x4a6177
jmp 0x4a6179
inc dword [esp + 0x40]
jmp 0x4a6149
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
lea edx, [0x5116e0]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004711a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
jmp 0x4a61e6
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x34], eax
jg 0x4a61f5
jmp 0x4a62f8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov dword [esp], eax
call fcn.004a5ff0
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
cmp eax, 1
je 0x4a6221
jmp 0x4a624b
jmp 0x4a6223
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x10]
cmp eax, ecx
jb 0x4a623c
jmp 0x4a6347
lea eax, [ebx + eax*2]
mov word [eax], bp
inc dword [esp + 0x20]
jmp 0x4a62ed
cmp eax, 2
je 0x4a6252
jmp 0x4a62c9
jmp 0x4a6254
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.004a5f40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
ja 0x4a6295
jmp 0x4a6340
lea ebx, [edx + ebx*2]
mov word [ebx], ax
mov ebx, dword [esp + 0x20]
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
cmp ecx, eax
ja 0x4a62bb
jmp 0x4a633b
lea eax, [ebp + ebx*2 + 2]
mov word [eax], si
add dword [esp + 0x20], 2
jmp 0x4a62ed
jmp 0x4a62cb
jmp 0x4a62cd
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
cmp ecx, eax
ja 0x4a62df
jmp 0x4a6336
lea eax, [ebx + eax*2]
mov word [eax], 0xfffd
inc dword [esp + 0x20]
jmp 0x4a62ed
jmp 0x4a62ef
inc dword [esp + 0x38]
jmp 0x4a61e6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
cmp ecx, edx
jbe 0x4a630a
jmp 0x4a6331
jmp 0x4a630c
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x74
ret
call fcn.00475870
call fcn.00475830
call fcn.00475830
mov eax, ebx
call fcn.00475830
call fcn.00475830
nop
call fcn.004743b0
jmp fcn.004a60e0