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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x47608d
sub esp, 0x60
mov eax, dword [esp + 0x68]
cmp eax, 2
jl 0x476051
mov ecx, dword [esp + 0x64]
movzx edx, byte [ecx]
movzx ebx, byte [eax + ecx - 1]
cmp dl, bl
jne 0x476029
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 0x475ea6
mov byte [esp + 0x26], dl
cmp dl, 0x22
je 0x475aac
cmp dl, 0x27
jne 0x475e7e
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov byte [esp + 8], 0xa
call fcn.00402450
cmp dword [esp + 0xc], 0xffffffff
jne 0x475e56
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.00402450
cmp dword [esp + 0xc], 0xffffffff
je 0x475e2c
xor eax, eax
test al, al
je 0x475b09
movzx eax, byte [esp + 0x26]
cmp al, 0x22
je 0x475de1
cmp al, 0x27
je 0x475d74
mov dword [esp + 0x30], 0
lea eax, [0x659d80]
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.0043c2b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
xor ebx, ebx
mov ebp, dword [esp + 0x48]
jmp 0x475b63
mov edx, ebx
mov eax, edi
mov ebx, ecx
mov ebp, esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x475d38
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.004753b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
movzx esi, byte [esp + 0x10]
test ecx, ecx
jne 0x475d1c
mov dword [esp + 0x28], edx
mov dword [esp + 0x54], ebx
cmp ebp, 0x80
jge 0x475c63
mov eax, dword [esp + 0x44]
lea ecx, [eax + 1]
mov esi, dword [esp + 0x48]
cmp ecx, esi
ja 0x475c19
mov edi, dword [esp + 0x5c]
xchg ebp, ebx
mov byte [edi + eax], bl
xchg ebp, ebx
movzx eax, byte [esp + 0x26]
cmp al, 0x27
jne 0x475b57
test edx, edx
je 0x475b57
mov eax, dword [0x8add30]
mov ecx, dword [0x8add34]
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], ebp
lea edx, [0x659d80]
mov dword [esp], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
call fcn.0043c410
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
jmp 0x475bd4
xchg esi, eax
test al, al
xchg esi, eax
je 0x475bc1
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 4
call fcn.0045ea90
mov ecx, dword [esp + 0x10]
cmp ecx, 4
ja 0x476079
mov eax, dword [esp + 0x44]
lea edx, [ecx + eax]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x48]
cmp edx, ebx
ja 0x475ce4
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.004516d0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x48]
jmp 0x475bdb
mov dword [esp + 0x34], ecx
lea ecx, [0x659d80]
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.0043c410
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
jmp 0x475cad
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0043f830
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
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.0045e690
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp ecx, 0xfffd
mov edx, dword [esp + 0x2c]
cmp eax, edx
jne 0x475daf
cmp ecx, 0xfffd
je 0x475dd9
mov eax, 1
test al, al
jne 0x475db9
movzx eax, byte [esp + 0x26]
jmp 0x475b09
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
setne al
jmp 0x475dab
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.0045f000
movzx eax, byte [esp + 8]
test al, al
jne 0x475e08
movzx eax, byte [esp + 0x26]
jmp 0x475b09
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.00402450
cmp dword [esp + 0xc], 0xffffffff
sete al
jmp 0x475aee
mov eax, dword [0x8add34]
mov ecx, dword [0x8add30]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov eax, dword [0x8add30]
mov ecx, dword [0x8add34]
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.00402450
cmp dword [esp + 0xc], 0xffffffff
jne 0x476001
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.00402450
cmp dword [esp + 0xc], 0xffffffff
je 0x475fdd
lea eax, [0x659d80]
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.0043c2b0
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 0x475f2a
inc ebp
mov edi, dword [esp + 0x2c]
mov esi, edx
mov edx, edi
cmp ebp, edx
jge 0x475fa1
jae 0x476083
movzx edi, byte [ecx + ebp]
xchg edi, eax
cmp al, 0xd
xchg edi, eax
je 0x475f9d
lea edx, [esi + 1]
cmp edx, ebx
ja 0x475f4f
xchg edi, ebx
mov byte [eax + esi], bl
xchg edi, ebx
jmp 0x475f21
mov dword [esp + 0x38], ebp
xchg edi, eax
mov byte [esp + 0x27], al
xchg edi, eax
mov dword [esp + 0x40], esi
lea ecx, [0x659d80]
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.0043c410
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 0x475f46
mov edx, esi
jmp 0x475f21
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
call fcn.0043f830
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
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 + 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 [0x8add34]
mov ecx, dword [0x8add30]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov eax, dword [0x8add34]
mov ecx, dword [0x8add30]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov eax, dword [0x8add34]
mov ecx, dword [0x8add30]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
mov edx, 4
call fcn.00450dc0
mov eax, ebp
mov ecx, edx
call fcn.00450da0
nop
call fcn.0044f4e0
jmp fcn.00475a40