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

Disassembly:
sub esp, 0x60
mov eax, dword [0x46453c]
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 0x40e591
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.0x40e22d.35
movzx ecx, byte [ecx + 0x40e5d0]
jmp dword [ecx*4 + 0x40e5c0]
test esi, esi
je 0x40e272
cmp dword [esp + 0x80], 3
jle 0x40e272
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 0x40e4cd
test esi, esi
je 0x40e2ab
cmp dword [esp + 0x80], 4
jle 0x40e2ab
mov ecx, dword [str.amp_]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [0x452254]
mov dword [eax + 4], edx
mov cx, word [0x452258]
mov word [eax + 8], cx
add esi, 0xa
mov edi, 5
jmp 0x40e4cd
test byte [esp + 0x84], 1
je case.0x40e22d.35
test esi, esi
je 0x40e2f2
cmp dword [esp + 0x80], 5
jle 0x40e2f2
cmp ax, 0x27
mov eax, str.apos_
je 0x40e2dd
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 0x40e4cd
cmp ax, 0xd800
jb 0x40e369
cmp ax, 0xdbff
ja 0x40e369
mov eax, dword [esp + 0x14]
test ax, ax
je 0x40e35c
test esi, esi
je 0x40e357
cmp dword [esp + 0x80], 7
jle 0x40e357
movzx ecx, ax
push ecx
push str.x_04X_
lea edx, [esp + 0x34]
push 9
push edx
call fcn.0042e215
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 0x40e4cd
mov ecx, dword [esp + 0x14]
test cx, cx
je 0x40e457
cmp ax, 0xdc00
jb 0x40e3e6
cmp ax, 0xdfff
ja 0x40e3e6
test esi, esi
je 0x40e3da
cmp dword [esp + 0x80], 9
jle 0x40e3da
movzx ecx, cx
sub ecx, 0xd7f7
shl ecx, 0xa
add ecx, edx
push ecx
push 0x452208
lea edx, [esp + 0x5c]
push 0xb
push edx
call fcn.0042e215
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 0x40e44b
test esi, esi
je 0x40e42c
cmp dword [esp + 0x80], 7
jle 0x40e42c
movzx edx, cx
push edx
push str.x_04X_
lea eax, [esp + 0x48]
push 9
push eax
call fcn.0042e215
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 0x40e4cd
mov ax, word [ebx]
cmp ax, 0x20
jb 0x40e482
cmp ax, 0x7e
ja 0x40e482
test esi, esi
je 0x40e47b
mov ecx, dword [esp + 0x80]
test ecx, ecx
jle 0x40e47b
mov word [esi], ax
add esi, 2
mov edi, 1
jmp 0x40e4cd
test esi, esi
je 0x40e4c8
cmp dword [esp + 0x80], 7
jle 0x40e4c8
movzx ecx, ax
push ecx
push str.x_04X_
lea edx, [esp + 0x20]
push 9
push edx
call fcn.0042e215
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 0x40e210
mov eax, dword [esp + 0x14]
test ax, ax
pop edi
pop ebp
pop ebx
je 0x40e591
cmp ax, 0x20
jb 0x40e538
cmp ax, 0x7e
ja 0x40e538
test esi, esi
je 0x40e524
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x40e524
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 0x40e591
test esi, esi
je 0x40e578
cmp dword [esp + 0x74], 7
jle 0x40e578
movzx eax, ax
push eax
push str.x_04X_
lea ecx, [esp + 0x14]
push 9
push ecx
call fcn.0042e215
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 0x40e5ad
mov eax, dword [esp + 0x70]
test eax, eax
jge 0x40e5ad
xor eax, eax
mov ecx, dword [esp + 0x5c]
call fcn.0042c9b6
add esp, 0x60
ret
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp]
call fcn.0042c9b6
add esp, 0x60
ret