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

Disassembly:
sub esp, 0x68
mov eax, dword [0x46946c]
mov ecx, dword [esp + 0x78]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
je 0x409e41
push ebp
mov dword [esp + 0x18], eax
push edi
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov ax, word [edx]
movzx edx, ax
lea ecx, [edx - 0x22]
xor ebp, ebp
xor edi, edi
cmp ecx, 0x1c
ja case.0x409b01.35
movzx ecx, byte [ecx + 0x409e84]
jmp dword [ecx*4 + 0x409e74]
test esi, esi
je 0x409b47
cmp dword [esp + 0x10], 3
jle 0x409b47
mov eax, dword [esp + 0x18]
mov word [esi], 0x26
add esi, 2
xor edx, edx
cmp word [eax], 0x3c
setne dl
add esi, 2
add esi, 2
dec edx
and edx, 5
add edx, 0x67
mov word [esi - 4], dx
mov word [esi - 2], 0x74
mov word [esi], 0x3b
add esi, 2
mov edi, 4
jmp 0x409d7f
test esi, esi
je 0x409b7c
cmp dword [esp + 0x10], 4
jle 0x409b7c
mov edx, dword [str.amp_]
mov ecx, esi
mov dword [ecx], edx
mov eax, dword [0x45bf68]
mov dword [ecx + 4], eax
mov dx, word [0x45bf6c]
mov word [ecx + 8], dx
add esi, 0xa
mov edi, 5
jmp 0x409d7f
test byte [esp + 0x8c], 1
je case.0x409b01.35
test esi, esi
je 0x409bc0
cmp dword [esp + 0x10], 5
jle 0x409bc0
cmp ax, 0x27
mov eax, str.apos_
je 0x409bab
mov eax, str.quot_
mov edx, dword [eax]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
add esi, 0xc
mov edi, 6
jmp 0x409d7f
cmp ax, 0xd800
jb 0x409c30
cmp ax, 0xdbff
ja 0x409c30
test bx, bx
je 0x409c24
test esi, esi
je 0x409c1f
cmp dword [esp + 0x10], 7
jle 0x409c1f
movzx ecx, bx
push ecx
push str.x_04X_
lea edx, [esp + 0x50]
push 9
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
add esp, 0x10
mov dword [eax + 0xc], edx
add esi, 0x10
mov edi, 8
mov eax, dword [esp + 0x18]
mov bx, word [eax]
jmp 0x409d7f
test bx, bx
je 0x409d0a
cmp ax, 0xdc00
jb 0x409ca7
cmp ax, 0xdfff
ja 0x409ca7
test esi, esi
je 0x409c9b
cmp dword [esp + 0x10], 9
jle 0x409c9b
movzx ecx, bx
sub ecx, 0xd7f7
shl ecx, 0xa
add ecx, edx
push ecx
push 0x45bf1c
lea edx, [esp + 0x64]
push 0xb
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
add esp, 0x10
mov dword [eax + 0x10], ecx
add esi, 0x14
mov edi, 0xa
mov ebp, 1
jmp 0x409d04
test esi, esi
je 0x409ceb
cmp dword [esp + 0x10], 7
jle 0x409ceb
movzx edx, bx
push edx
push str.x_04X_
lea eax, [esp + 0x3c]
push 9
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], edx
add esp, 0x10
mov dword [ecx + 0xc], eax
add esi, 0x10
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, 8
sub edx, eax
add ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
xor ebx, ebx
test ebp, ebp
jne 0x409d7f
mov ecx, dword [esp + 0x18]
mov ax, word [ecx]
cmp ax, 0x20
jb 0x409d36
cmp ax, 0x7e
ja 0x409d36
test esi, esi
je 0x409d2f
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x409d2f
mov word [esi], ax
add esi, 2
mov edi, 1
jmp 0x409d7f
test esi, esi
je 0x409d7a
cmp dword [esp + 0x10], 7
jle 0x409d7a
movzx edx, ax
push edx
push str.x_04X_
lea eax, [esp + 0x28]
push 9
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
add esp, 0x10
mov dword [ecx + 0xc], eax
add esi, 0x10
mov edi, 8
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub ebp, edi
add edx, edi
add ecx, 2
dec eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x409ae0
test bx, bx
pop edi
pop ebp
je 0x409e41
cmp bx, 0x20
jb 0x409de7
cmp bx, 0x7e
ja 0x409de7
test esi, esi
je 0x409dd3
mov eax, dword [esp + 8]
test eax, eax
jle 0x409dd3
mov word [esi], bx
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
dec ecx
inc eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x409e41
test esi, esi
je 0x409e28
cmp dword [esp + 8], 7
jle 0x409e28
movzx ecx, bx
push ecx
push str.x_04X_
lea edx, [esp + 0x20]
push 9
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
add esp, 0x10
mov dword [eax + 0xc], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, 8
sub edx, eax
add ecx, eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
test esi, esi
pop esi
pop ebx
je 0x409e5f
mov eax, dword [esp]
test eax, eax
jge 0x409e5f
xor eax, eax
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00458c53
add esp, 0x68
ret
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.00458c53
add esp, 0x68
ret