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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push 0
push 0
push 0x1032
push dword [ebx + 0x28]
mov dword [esp + 0x20], ebx
call edi
test eax, eax
je 0x40f03d
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x28]
call edi
push 0
push 0
push 0x147
push dword [ebx + 0x4c]
mov esi, eax
mov dword [esp + 0x2c], esi
call edi
mov dword [esp + 0x5c], eax
cmp esi, 0xffffffff
je 0x40f03d
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a6b1
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x40f03d
mov esi, dword [ebx + 0x44]
lea eax, [esp + 0x74]
push 0x34
push 0
push eax
call fcn.0041c3a0
add esp, 0xc
mov dword [esp + 0x7c], 0
lea eax, [esp + 0x74]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edi
push eax
push dword [esp + 0x20]
push 0x1073
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
cmp eax, 1
jbe 0x40efcd
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.0041a6b1
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x40f034
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40f02b
mov eax, dword [esp + 0x5c]
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], 0x2b5d
sub eax, 0
je 0x40eb2c
sub eax, 1
je 0x40eb18
sub eax, 1
jne 0x40eb3e
mov byte [esp + 0xe], 1
mov dword [esp + 0x18], 0x2b5c
jmp 0x40eb39
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], 1
mov dword [esp + 0x18], 0x2b5e
jmp 0x40eb3e
mov byte [esp + 0xe], 0
mov dword [esp + 0x18], 0x2b5d
mov byte [esp + 0xf], 0
push 0xd
call fcn.0041a6b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40eb7b
movq xmm0, qword [str.alwayssecure]
mov esi, edi
movq qword [edi], xmm0
mov ecx, dword [0x4aa0e8]
mov dword [edi + 8], ecx
mov byte [edi + 0xc], 0
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40eb70
sub esi, ecx
jmp 0x40eb7d
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40eba2
test esi, esi
je 0x40eb9e
push esi
push edi
push ebx
call fcn.0042e720
add esp, 0xc
mov byte [ebx + esi], 0
lea eax, [esp + 0xe]
mov dword [esp + 0x48], ebx
push eax
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], 1
call fcn.00402b40
test edi, edi
je 0x40ebcb
push edi
call fcn.0041a66b
add esp, 4
push 0xc
call fcn.0041a6b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40ec0f
movq xmm0, qword [str.allowsecure]
mov esi, edi
movq qword [edi], xmm0
mov cx, word [0x4aa0dc]
mov word [edi + 8], cx
mov cl, byte [0x4aa0de]
mov byte [edi + 0xa], cl
lea ecx, [esi + 1]
mov byte [edi + 0xb], 0
mov al, byte [esi]
inc esi
test al, al
jne 0x40ec04
sub esi, ecx
jmp 0x40ec11
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ec36
test esi, esi
je 0x40ec32
push esi
push edi
push ebx
call fcn.0042e720
add esp, 0xc
mov byte [ebx + esi], 0
lea eax, [esp + 0xf]
mov dword [esp + 0x38], ebx
push eax
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], 1
call fcn.00402b40
test edi, edi
je 0x40ec5f
push edi
call fcn.0041a66b
add esp, 4
mov edi, dword [esp + 0x20]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ec68
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ec96
test esi, esi
je 0x40ec92
push esi
push edi
push ebx
call fcn.0042e720
add esp, 0xc
mov byte [ebx + esi], 0
push 0xd
mov dword [esp + 0x18], ebx
call fcn.0041a6b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40ecc3
movq xmm0, qword [str.alwayssecure]
movq qword [edi], xmm0
mov ecx, dword [0x4aa0e8]
mov dword [edi + 8], ecx
mov byte [edi + 0xc], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov dword [esp + 0x38], eax
call fcn.00403740
sub esp, 0x10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x58]
mov ecx, esp
push eax
call fcn.00402800
push ecx
mov dword [esp + 0x40], esp
test edi, edi
je 0x40ed0b
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ed00
sub esi, ecx
jmp 0x40ed0d
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40ed38
test esi, esi
je 0x40ed34
push esi
push edi
push eax
call fcn.0042e720
mov eax, dword [esp + 0x48]
add esp, 0xc
mov byte [eax + esi], 0
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x44]
push eax
call fcn.00406720
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
call fcn.00405ba0
mov byte [esp + 0xf], al
test edi, edi
je 0x40ed6b
push edi
call fcn.0041a66b
add esp, 4
test ebx, ebx
je 0x40ed78
push ebx
call fcn.0041a66b
add esp, 4
mov edi, dword [esp + 0x20]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40ed81
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40edaf
test esi, esi
je 0x40edab
push esi
push edi
push ebx
call fcn.0042e720
add esp, 0xc
mov byte [ebx + esi], 0
push 0xc
mov dword [esp + 0x18], ebx
call fcn.0041a6b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40ede7
movq xmm0, qword [str.allowsecure]
movq qword [edi], xmm0
mov cx, word [0x4aa0dc]
mov word [edi + 8], cx
mov cl, byte [0x4aa0de]
mov byte [edi + 0xa], cl
mov byte [edi + 0xb], 0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov dword [esp + 0x2c], eax
call fcn.00403740
sub esp, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.00402800
push ecx
mov dword [esp + 0x44], esp
test edi, edi
je 0x40ee2b
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x40ee20
sub esi, ecx
jmp 0x40ee2d
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041a6b1
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
je 0x40ee58
test esi, esi
je 0x40ee54
push esi
push edi
push eax
call fcn.0042e720
mov eax, dword [esp + 0x54]
add esp, 0xc
mov byte [eax + esi], 0
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x40]
push eax
call fcn.00406720
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.00405ba0
mov byte [esp + 0xe], al
test edi, edi
je 0x40ee8e
push edi
call fcn.0041a66b
add esp, 4
test ebx, ebx
je 0x40ee9b
push ebx
call fcn.0041a66b
add esp, 4
cmp byte [esp + 0xf], 0
je 0x40ef16
cmp byte [esp + 0xe], 0
je 0x40ef16
push 0x34
call fcn.0041a670
mov edi, eax
add esp, 4
test edi, edi
je 0x40eff5
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x18]
mov dword [edi + 4], eax
mov dword [edi + 8], 1
mov dword [edi], 1
mov ecx, dword [ebx + 0x40]
call fcn.00402790
push eax
lea ecx, [esp + 0x64]
call fcn.00409a40
mov esi, dword [esp + 0x60]
push edi
push 0
push 0x104c
mov dword [edi + 0x14], esi
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x34
push edi
call fcn.0041a6a3
push esi
call fcn.0041a66b
add esp, 0xc
jmp 0x40ef1a
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push edi
call fcn.0041a66b
mov eax, dword [esp + 0x40]
add esp, 4
sub eax, 2
je 0x40ef45
sub eax, 1
jne 0x40ef67
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40ef67
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x40ef67
mov esi, dword [esp + 0x40]
test esi, esi
je 0x40ef67
mov eax, dword [esi]
test eax, eax
je 0x40ef5c
push eax
call fcn.0041a66b
add esp, 4
push 4
push esi
call fcn.0041a6a3
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40ef78
push eax
call fcn.0041a66b
add esp, 4
mov eax, dword [esp + 0x4c]
sub eax, 2
je 0x40ef96
sub eax, 1
jne 0x40efb8
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x40efb8
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x40efb8
mov esi, dword [esp + 0x50]
test esi, esi
je 0x40efb8
mov eax, dword [esi]
test eax, eax
je 0x40efad
push eax
call fcn.0041a66b
add esp, 4
push 4
push esi
call fcn.0041a6a3
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40efc9
push eax
call fcn.0041a66b
add esp, 4
mov edi, dword [esp + 0x24]
push edi
call fcn.0041a66b
add esp, 4
push 2
push dword [esp + 0x20]
push 0x100c
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x40ea17
mov edi, dword [esp + 0x20]
push edi
call fcn.0041a66b
add esp, 4
push dword [esp + 0x24]
call fcn.0041a66b
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00402ae0
lea ecx, [esp + 0x48]
call fcn.00402ae0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.0041a66b
add esp, 4
push edi
call fcn.0041a66b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10