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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x471318
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 2
jl 0x4712dc
mov ecx, dword [esp + 0x64]
movzx edx, byte [ecx]
lea ebx, [eax + ecx - 1]
cmp byte [ebx], dl
jne 0x4712b4
lea ebx, [eax - 2]
mov dword [esp + 0x2c], ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add ecx, ebx
mov dword [esp + 0x58], ecx
cmp dl, 0x60
je 0x471135
mov byte [esp + 0x26], dl
cmp dl, 0x22
je 0x470d5b
cmp dl, 0x27
jne 0x47110d
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov byte [esp + 8], 0xa
call fcn.004029c0
cmp dword [esp + 0xc], 0xffffffff
jne 0x4710e5
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x5c
call fcn.004029c0
cmp dword [esp + 0xc], 0xffffffff
je 0x4710bb
xor eax, eax
test al, al
je 0x470db8
movzx eax, byte [esp + 0x26]
cmp al, 0x22
je 0x471070
cmp al, 0x27
je 0x471015
mov dword [esp + 0x30], 0
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x68]
lea edx, [ecx + ecx*2 - 6]
lea ecx, [ecx + ecx*2]
shr edx, 0x1f
lea ecx, [ecx + edx - 6]
sar ecx, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 8], ecx
call fcn.004430a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov ebp, dword [esp + 0x48]
jmp 0x470e0e
mov ecx, eax
mov edx, ebp
mov ebp, esi
mov eax, edi
test ecx, ecx
jle 0x470fdd
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
movzx eax, byte [esp + 0x26]
mov byte [esp + 8], al
call fcn.004706c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
movzx ebx, byte [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
test ecx, ecx
jne 0x470fc1
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ebp
cmp edx, 0x80
jge 0x470f0a
mov ecx, dword [esp + 0x44]
lea ebx, [ecx + 1]
mov esi, dword [esp + 0x48]
cmp ebx, esi
ja 0x470ec0
mov edi, dword [esp + 0x5c]
mov byte [edi + ecx], dl
movzx ecx, byte [esp + 0x26]
cmp cl, 0x27
jne 0x470e06
test eax, eax
je 0x470e06
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov dword [esp + 0x3c], edx
lea eax, [0x787b20]
mov dword [esp], eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004431f0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x54]
jmp 0x470e7f
test bl, bl
je 0x470e6c
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 4
call fcn.00464700
mov ecx, dword [esp + 0x10]
cmp ecx, 4
ja 0x471304
mov eax, dword [esp + 0x44]
lea edx, [eax + ecx]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x48]
cmp ebx, edx
jb 0x470f89
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x5c], ebp
add eax, ebp
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0045ccd0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
jmp 0x470e82
mov dword [esp + 0x34], ecx
lea ecx, [0x787b20]
mov dword [esp], ecx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.004431f0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
jmp 0x470f52
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], esi
add esp, 0x60
ret
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00446730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.00464300
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
cmp edx, eax
jne 0x471066
cmp ecx, 0xfffd
je 0x471061
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
cmp eax, 1
jne 0x471041
movzx eax, byte [esp + 0x26]
jmp 0x470db8
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.00464c80
movzx eax, byte [esp + 8]
test al, al
jne 0x471097
movzx eax, byte [esp + 0x26]
jmp 0x470db8
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
movzx edx, byte [esp + 0x26]
mov byte [esp + 8], dl
call fcn.004029c0
cmp dword [esp + 0xc], 0xffffffff
sete al
jmp 0x470d9d
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov byte [esp + 8], 0x60
call fcn.004029c0
cmp dword [esp + 0xc], 0xffffffff
jne 0x47128c
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0xd
call fcn.004029c0
cmp dword [esp + 0xc], 0xffffffff
je 0x471268
lea eax, [0x787b20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x68]
add ecx, 0xfffffffd
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
call fcn.004430a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
xor ebp, ebp
xor esi, esi
jmp 0x4711b9
inc ebp
mov edi, dword [esp + 0x2c]
mov esi, edx
mov edx, edi
cmp edx, ebp
jle 0x471230
jbe 0x47130e
movzx edi, byte [ecx + ebp]
xchg edi, eax
cmp al, 0xd
xchg edi, eax
je 0x47122c
lea edx, [esi + 1]
cmp ebx, edx
jb 0x4711de
xchg edi, ebx
mov byte [eax + esi], bl
xchg edi, ebx
jmp 0x4711b0
mov dword [esp + 0x38], ebp
xchg edi, eax
mov byte [esp + 0x27], al
xchg edi, eax
mov dword [esp + 0x40], esi
lea ecx, [0x787b20]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.004431f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
movzx edi, byte [esp + 0x27]
jmp 0x4711d5
mov edx, esi
jmp 0x4711b0
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00446730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov eax, dword [0xa75b28]
mov ecx, dword [0xa75b2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x60
ret
mov edx, 4
call fcn.0045c3d0
mov eax, ebp
mov ecx, edx
call fcn.0045c3b0
nop
call fcn.0045ade0
jmp fcn.00470cf0