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

Disassembly:
sub esp, 0x60
mov eax, dword [0x4655d4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
cmp eax, ecx
push esi
mov esi, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
je 0x40e521
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push edi
mov dword [esp + 0x78], eax
lea ebx, [ebx]
mov ax, word [ebx]
movzx edx, ax
lea ecx, [edx - 0x22]
xor ebp, ebp
xor edi, edi
cmp ecx, 0x1c
ja case.0x40e1bd.35
movzx ecx, byte [ecx + 0x40e560]
jmp dword [ecx*4 + 0x40e550]
test esi, esi
je 0x40e202
cmp dword [esp + 0x80], 3
jle 0x40e202
mov word [esi], 0x26
add esi, 2
xor edx, edx
cmp word [ebx], 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 0x40e45d
test esi, esi
je 0x40e23b
cmp dword [esp + 0x80], 4
jle 0x40e23b
mov ecx, dword [str.amp_]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x45322c]
mov dword [eax + 4], edx
mov cx, word [0x453230]
mov word [eax + 8], cx
add esi, 0xa
mov edi, 5
jmp 0x40e45d
test byte [esp + 0x84], 1
je case.0x40e1bd.35
test esi, esi
je 0x40e282
cmp dword [esp + 0x80], 5
jle 0x40e282
cmp ax, 0x27
mov eax, str.apos_
je 0x40e26d
mov eax, str.quot_
mov ecx, dword [eax]
mov edx, esi
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
add esi, 0xc
mov edi, 6
jmp 0x40e45d
cmp ax, 0xd800
jb 0x40e2f9
cmp ax, 0xdbff
ja 0x40e2f9
mov eax, dword [esp + 0x14]
test ax, ax
je 0x40e2ec
test esi, esi
je 0x40e2e7
cmp dword [esp + 0x80], 7
jle 0x40e2e7
movzx ecx, ax
push ecx
push str.x_04X_
lea edx, [esp + 0x34]
push 9
push edx
call fcn.0042eb15
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
add esp, 0x10
mov dword [eax + 0xc], edx
add esi, 0x10
mov edi, 8
mov ax, word [ebx]
mov word [esp + 0x14], ax
jmp 0x40e45d
mov ecx, dword [esp + 0x14]
test cx, cx
je 0x40e3e7
cmp ax, 0xdc00
jb 0x40e376
cmp ax, 0xdfff
ja 0x40e376
test esi, esi
je 0x40e36a
cmp dword [esp + 0x80], 9
jle 0x40e36a
movzx ecx, cx
sub ecx, 0xd7f7
shl ecx, 0xa
add ecx, edx
push ecx
push 0x4531e0
lea edx, [esp + 0x5c]
push 0xb
push edx
call fcn.0042eb15
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
add esp, 0x10
mov dword [eax + 0x10], ecx
add esi, 0x14
mov edi, 0xa
mov ebp, 1
jmp 0x40e3db
test esi, esi
je 0x40e3bc
cmp dword [esp + 0x80], 7
jle 0x40e3bc
movzx edx, cx
push edx
push str.x_04X_
lea eax, [esp + 0x48]
push 9
push eax
call fcn.0042eb15
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 8], edx
add esp, 0x10
mov dword [ecx + 0xc], eax
add esi, 0x10
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
mov eax, 8
sub edx, eax
add ecx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x10], ecx
test ebp, ebp
mov dword [esp + 0x14], 0
jne 0x40e45d
mov ax, word [ebx]
cmp ax, 0x20
jb 0x40e412
cmp ax, 0x7e
ja 0x40e412
test esi, esi
je 0x40e40b
mov ecx, dword [esp + 0x80]
test ecx, ecx
jle 0x40e40b
mov word [esi], ax
add esi, 2
mov edi, 1
jmp 0x40e45d
test esi, esi
je 0x40e458
cmp dword [esp + 0x80], 7
jle 0x40e458
movzx ecx, ax
push ecx
push str.x_04X_
lea edx, [esp + 0x20]
push 9
push edx
call fcn.0042eb15
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
add esi, 0x10
mov edi, 8
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
sub ebp, edi
add edx, edi
add ebx, 2
dec eax
mov dword [esp + 0x80], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x78], eax
jne 0x40e1a0
mov eax, dword [esp + 0x14]
test ax, ax
pop edi
pop ebp
pop ebx
je 0x40e521
cmp ax, 0x20
jb 0x40e4c8
cmp ax, 0x7e
ja 0x40e4c8
test esi, esi
je 0x40e4b4
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x40e4b4
mov word [esi], ax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 4]
dec ecx
inc eax
mov dword [esp + 0x74], ecx
mov dword [esp + 4], eax
jmp 0x40e521
test esi, esi
je 0x40e508
cmp dword [esp + 0x74], 7
jle 0x40e508
movzx eax, ax
push eax
push str.x_04X_
lea ecx, [esp + 0x14]
push 9
push ecx
call fcn.0042eb15
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 8], eax
add esp, 0x10
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 4]
mov eax, 8
sub edx, eax
add ecx, eax
mov dword [esp + 0x74], edx
mov dword [esp + 4], ecx
test esi, esi
pop esi
je 0x40e53d
mov eax, dword [esp + 0x70]
test eax, eax
jge 0x40e53d
xor eax, eax
mov ecx, dword [esp + 0x5c]
call fcn.0042d2b8
add esp, 0x60
ret
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp]
call fcn.0042d2b8
add esp, 0x60
ret