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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a0d63
sub esp, 0x7c
mov eax, dword [esp + 0x84]
cmp eax, 2
jl 0x4a081b
mov ecx, dword [esp + 0x80]
movzx edx, byte [ecx]
mov byte [esp + 0x26], dl
lea ebx, [ecx + 1]
mov dword [esp + 0x64], ebx
mov dword [esp], ebx
lea ebp, [eax - 1]
mov dword [esp + 0x2c], ebp
mov dword [esp + 4], ebp
mov byte [esp + 8], dl
call fcn.00402a00
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x4a07cb
mov dword [esp + 0x28], eax
lea ecx, [eax + 2]
mov dword [esp + 0x40], ecx
movzx ebx, byte [esp + 0x26]
cmp bl, 0x22
je 0x4a057c
cmp bl, 0x27
je 0x4a057c
cmp bl, 0x60
jne 0x4a052c
movzx ebx, byte [esp + 0x88]
test bl, bl
je 0x4a050f
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0d5d
nop
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0xd
call fcn.00402a00
cmp dword [esp + 0xc], 0xffffffff
je 0x4a04d6
lea eax, [0x5e4900]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x28]
lea edx, [ecx - 1]
mov dword [esp + 0x50], edx
mov dword [esp + 8], edx
call fcn.0044a5d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x50]
mov esi, 1
xor edi, edi
jmp 0x4a0ca9
mov ebx, dword [esp + 0x28]
lea ecx, [ebx + 1]
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0c9f
cmp ecx, 1
jb 0x4a0c93
mov ecx, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
mov ebp, dword [esp + 0x80]
add ebx, ebp
mov eax, ecx
jmp 0x4a0c35
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0c8e
mov ebp, dword [esp + 0x80]
mov ebx, ebp
jmp 0x4a0c35
mov eax, dword [0x7bb400]
mov ecx, dword [0x7bb404]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x7c
ret
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0c30
nop
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x5c
call fcn.00402a00
cmp dword [esp + 0xc], 0xffffffff
je 0x4a05af
xor eax, eax
jmp 0x4a05d4
nop
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0xa
call fcn.00402a00
cmp dword [esp + 0xc], 0xffffffff
sete al
test al, al
je 0x4a0761
movzx ebx, byte [esp + 0x26]
cmp bl, 0x22
jne 0x4a0639
mov ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0c2b
cmp ecx, 1
jb 0x4a0c1f
mov eax, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
mov ecx, dword [esp + 0x80]
lea edx, [ecx + ebp]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00487840
movzx eax, byte [esp + 8]
mov ebx, dword [esp + 0x40]
mov ebp, eax
jmp 0x4a06b9
cmp bl, 0x27
jne 0x4a06b3
mov ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
mov edx, dword [esp + 0x84]
cmp edx, ecx
jb 0x4a0c1a
cmp ecx, 1
jb 0x4a0c0e
mov eax, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
mov ecx, dword [esp + 0x80]
lea edx, [ecx + ebp]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00486fe0
mov eax, dword [esp + 0xc]
lea ecx, [eax + 2]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x40]
cmp ecx, ebx
jne 0x4a06af
cmp edx, 0xfffd
je 0x4a06a3
mov ebp, 1
jmp 0x4a06b9
cmp eax, 1
xchg ebp, ebx
setne bl
xchg ebp, ebx
jmp 0x4a06b9
xor ebp, ebp
jmp 0x4a06b9
mov ebx, dword [esp + 0x40]
xor ebp, ebp
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a0761
movzx ebp, byte [esp + 0x88]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a0705
mov ebp, dword [esp + 0x28]
lea ecx, [ebp + 1]
cmp ecx, ebx
ja 0x4a0c07
cmp ecx, 1
jb 0x4a0bfb
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
mov eax, dword [esp + 0x80]
lea edx, [eax + ebp]
mov ebp, ecx
jmp 0x4a0714
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x28]
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x84]
sub ecx, ebp
add ecx, 0xfffffffe
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ebx, ecx
add eax, ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x7c
ret
movzx eax, byte [esp + 0x88]
test al, al
jne 0x4a0773
xor ecx, ecx
xor edx, edx
jmp 0x4a07b7
lea eax, [0x5e4900]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ecx*2]
lea ecx, [ecx + ecx*2 + 6]
shr ecx, 0x1f
lea ecx, [edx + ecx + 6]
sar ecx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
call fcn.0044a5d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, eax
movzx eax, byte [esp + 0x88]
movzx esi, byte [esp + 0x26]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x2c]
xor edi, edi
jmp 0x4a0878
mov eax, dword [0x7bb400]
mov ecx, dword [0x7bb404]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x7c
ret
mov ecx, dword [0x7bb400]
mov edx, dword [0x7bb404]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x68]
mov ecx, ebx
mov edx, eax
movzx eax, byte [esp + 0x88]
mov ebx, dword [esp + 0x68]
test ebp, ebp
je 0x4a0aba
xchg esi, eax
cmp byte [ebx], al
xchg esi, eax
je 0x4a0aba
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x44], edi
mov dword [esp], ebx
mov dword [esp + 4], ebp
xchg esi, eax
mov byte [esp + 8], al
xchg esi, eax
call fcn.0049fd20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
cmp byte [esi], 0xa
je 0x4a0a6a
test ebx, ebx
jne 0x4a0a6a
mov dword [esp + 0x68], eax
movzx ebx, byte [esp + 0x88]
test bl, bl
je 0x4a0a40
mov dword [esp + 0x30], ebp
cmp ecx, 0x80
jl 0x4a08fe
test dl, dl
jne 0x4a0980
mov esi, dword [esp + 0x44]
lea edi, [esi + 1]
mov edx, ebx
mov ebx, dword [esp + 0x4c]
cmp ebx, edi
jb 0x4a0921
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x5c]
jmp 0x4a0974
mov dword [esp + 0x34], ecx
lea eax, [0x5e4900]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
call fcn.0044a7d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edi, [eax + 1]
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x74], edx
mov ebx, ecx
mov ecx, dword [esp + 0x34]
movzx edx, byte [esp + 0x88]
mov eax, dword [esp + 0x74]
mov byte [eax + esi], cl
jmp 0x4a0a4e
mov dword [esp + 0x54], 0
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 4
mov dword [esp + 0xc], ecx
call fcn.004872b0
mov ecx, dword [esp + 0x10]
cmp ecx, 4
ja 0x4a0bf1
mov eax, dword [esp + 0x44]
lea edx, [eax + ecx]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x4c]
cmp ebx, edx
jb 0x4a09ce
mov ebp, dword [esp + 0x6c]
jmp 0x4a0a08
mov dword [esp + 0x38], ecx
lea ecx, [0x5e4900]
mov dword [esp], ecx
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.0044a7d0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x4c], ebx
add eax, ebp
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00461a40
movzx edx, byte [esp + 0x88]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x70]
jmp 0x4a0a4e
mov edx, ebx
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x4c]
movzx esi, byte [esp + 0x26]
xchg esi, eax
cmp al, 0x27
xchg esi, eax
jne 0x4a0864
mov ebx, dword [esp + 0x68]
mov ecx, eax
mov eax, edx
mov edx, ecx
jmp 0x4a0aba
mov eax, dword [0x7bb400]
mov ecx, dword [0x7bb404]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x7c
ret
test ebp, ebp
je 0x4a0b98
xchg esi, eax
cmp byte [ebx], al
xchg esi, eax
jne 0x4a0b98
lea esi, [ebp - 1]
mov ecx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 1
add ebx, esi
test al, al
jne 0x4a0b36
mov edx, dword [esp + 0x84]
mov eax, edx
sub edx, ebp
lea ebp, [edx + 1]
cmp eax, ebp
jb 0x4a0be8
mov eax, dword [esp + 0x80]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x7c
ret
mov dword [esp + 0x58], ecx
mov dword [esp + 0x78], ebx
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.0044e1a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x7c
ret
mov eax, dword [0x7bb400]
mov ecx, dword [0x7bb404]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x7c
ret
mov ecx, ebp
mov edx, eax
call fcn.00461170
mov edx, 4
call fcn.00461170
mov eax, 1
xor ecx, ecx
call fcn.004611b0
mov edx, ebx
call fcn.00461170
mov eax, 1
xor ecx, ecx
call fcn.004611b0
call fcn.00461170
mov eax, 1
xor ecx, ecx
call fcn.004611b0
call fcn.00461170
call fcn.00461170
mov esi, dword [esp + 0x40]
cmp edx, esi
jb 0x4a0c85
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
sub edx, eax
lea eax, [edx - 2]
mov ecx, eax
neg eax
sar eax, 0x1f
and esi, eax
lea eax, [ebp + esi]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x7c
ret
mov eax, esi
mov ecx, edx
call fcn.004611b0
call fcn.00461170
mov eax, 1
xor ecx, ecx
call fcn.004611b0
call fcn.00461170
inc esi
mov edx, dword [esp + 0x28]
inc edx
cmp esi, edx
jge 0x4a0d21
cmp ebx, esi
jbe 0x4a0d54
movzx edx, byte [ecx + esi]
cmp dl, 0xd
je 0x4a0ca4
lea ebx, [edi + 1]
cmp ebp, ebx
jae 0x4a0d13
mov dword [esp + 0x3c], esi
mov byte [esp + 0x27], dl
mov dword [esp + 0x48], edi
lea ecx, [0x5e4900]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.0044a7d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x80]
movzx edx, byte [esp + 0x27]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x48]
mov byte [eax + edi], dl
mov edi, ebx
mov ebx, dword [esp + 0x84]
jmp 0x4a0ca4
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edi
call fcn.0044e1a0
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
jmp 0x4a0c35
mov eax, esi
mov ecx, ebx
call fcn.00461150
call fcn.00461170
nop
call fcn.0045fcc0
jmp fcn.004a03c0