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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4ad00c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push 0x1032
mov dword [esp + 0x1c], ebx
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x413189
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push dword [ebx + 0x4c]
mov esi, eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x58], eax
cmp esi, 0xffffffff
je 0x413189
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ad8b
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
je 0x413189
mov esi, dword [ebx + 0x44]
lea eax, [esp + 0x70]
push 0x34
push 0
push eax
call fcn.0041c660
add esp, 0xc
mov dword [esp + 0x78], 0
lea eax, [esp + 0x70]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], 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 0x413122
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.0041ad8b
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x413180
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 0x413177
mov eax, dword [esp + 0x58]
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], 0x2b5d
sub eax, 0
je 0x412c70
sub eax, 1
je 0x412c5c
sub eax, 1
jne 0x412c82
mov byte [esp + 0xe], 1
mov dword [esp + 0x18], 0x2b5c
jmp 0x412c7d
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], 1
mov dword [esp + 0x18], 0x2b5e
jmp 0x412c82
mov byte [esp + 0xe], 0
mov dword [esp + 0x18], 0x2b5d
mov byte [esp + 0xf], 0
push 0xd
call fcn.0041ad8b
mov edi, eax
add esp, 4
test edi, edi
je 0x412cbb
movq xmm0, qword [str.alwayssecure]
mov esi, edi
movq qword [edi], xmm0
mov ecx, dword [0x43d8e0]
mov dword [edi + 8], ecx
mov byte [edi + 0xc], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x412cb0
sub esi, ecx
jmp 0x412cbd
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412ce2
test esi, esi
je 0x412cde
push esi
push edi
push ebx
call fcn.0042edb0
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.004081c0
test edi, edi
je 0x412d0b
push edi
call fcn.0041ad86
add esp, 4
push 0xc
call fcn.0041ad8b
mov edi, eax
add esp, 4
test edi, edi
je 0x412d4f
movq xmm0, qword [str.allowsecure]
mov esi, edi
movq qword [edi], xmm0
mov cx, word [0x43d8d4]
mov word [edi + 8], cx
mov cl, byte [0x43d8d6]
mov byte [edi + 0xa], cl
lea ecx, [esi + 1]
mov byte [edi + 0xb], 0
mov al, byte [esi]
inc esi
test al, al
jne 0x412d44
sub esi, ecx
jmp 0x412d51
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412d76
test esi, esi
je 0x412d72
push esi
push edi
push ebx
call fcn.0042edb0
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.004081c0
test edi, edi
je 0x412d9f
push edi
call fcn.0041ad86
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 0x412da8
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412dd6
test esi, esi
je 0x412dd2
push esi
push edi
push ebx
call fcn.0042edb0
add esp, 0xc
mov byte [ebx + esi], 0
push 0xd
mov dword [esp + 0x18], ebx
call fcn.0041ad8b
mov edi, eax
add esp, 4
test edi, edi
je 0x412e03
movq xmm0, qword [str.alwayssecure]
movq qword [edi], xmm0
mov ecx, dword [0x43d8e0]
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.004086e0
sub esp, 0x10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x58]
mov ecx, esp
push eax
call fcn.00407e80
push ecx
mov dword [esp + 0x40], esp
test edi, edi
je 0x412e4b
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x412e40
sub esi, ecx
jmp 0x412e4d
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
je 0x412e78
test esi, esi
je 0x412e74
push esi
push edi
push eax
call fcn.0042edb0
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 + 0x74]
mov ecx, dword [esp + 0x44]
push eax
call fcn.0040b340
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
call fcn.0040a750
mov byte [esp + 0xf], al
test edi, edi
je 0x412eab
push edi
call fcn.0041ad86
add esp, 4
test ebx, ebx
je 0x412eb8
push ebx
call fcn.0041ad86
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 0x412ec1
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412eef
test esi, esi
je 0x412eeb
push esi
push edi
push ebx
call fcn.0042edb0
add esp, 0xc
mov byte [ebx + esi], 0
push 0xc
mov dword [esp + 0x18], ebx
call fcn.0041ad8b
mov edi, eax
add esp, 4
test edi, edi
je 0x412f27
movq xmm0, qword [str.allowsecure]
movq qword [edi], xmm0
mov cx, word [0x43d8d4]
mov word [edi + 8], cx
mov cl, byte [0x43d8d6]
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.004086e0
sub esp, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.00407e80
push ecx
mov dword [esp + 0x44], esp
test edi, edi
je 0x412f6b
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x412f60
sub esi, ecx
jmp 0x412f6d
xor esi, esi
lea eax, [esi + 1]
push eax
call fcn.0041ad8b
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
je 0x412f98
test esi, esi
je 0x412f94
push esi
push edi
push eax
call fcn.0042edb0
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 + 0x7c]
mov ecx, dword [esp + 0x40]
push eax
call fcn.0040b340
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.0040a750
mov byte [esp + 0xe], al
test edi, edi
je 0x412fcb
push edi
call fcn.0041ad86
add esp, 4
test ebx, ebx
je 0x412fd8
push ebx
call fcn.0041ad86
add esp, 4
cmp byte [esp + 0xf], 0
je 0x413053
cmp byte [esp + 0xe], 0
je 0x413053
push 0x34
call fcn.0041ada2
mov edi, eax
add esp, 4
test edi, edi
je 0x41314a
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.0041a580
push eax
lea ecx, [esp + 0x60]
call fcn.004031f0
mov esi, dword [esp + 0x5c]
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.0041ad94
push esi
call fcn.0041ad86
add esp, 0xc
jmp 0x413057
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
push edi
call fcn.0041ad86
mov eax, dword [esp + 0x40]
add esp, 4
sub eax, 2
je 0x41308e
sub eax, 1
jne 0x4130b0
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4130b0
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430270]
mov ecx, edi
call esi
jmp 0x4130b0
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4130b0
mov eax, dword [esi]
test eax, eax
je 0x4130a5
push eax
call fcn.0041ad86
add esp, 4
push 4
push esi
call fcn.0041ad94
add esp, 8
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4130c1
push eax
call fcn.0041ad86
add esp, 4
mov eax, dword [esp + 0x4c]
sub eax, 2
je 0x4130eb
sub eax, 1
jne 0x41310d
mov edi, dword [esp + 0x50]
test edi, edi
je 0x41310d
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x430270]
mov ecx, edi
call esi
jmp 0x41310d
mov esi, dword [esp + 0x50]
test esi, esi
je 0x41310d
mov eax, dword [esi]
test eax, eax
je 0x413102
push eax
call fcn.0041ad86
add esp, 4
push 4
push esi
call fcn.0041ad94
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x41311e
push eax
call fcn.0041ad86
add esp, 4
mov edi, dword [esp + 0x24]
push edi
call fcn.0041ad86
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 0x412b5b
mov edi, dword [esp + 0x20]
push edi
call fcn.0041ad86
add esp, 4
push dword [esp + 0x24]
call fcn.0041ad86
add esp, 4
lea ecx, [esp + 0x38]
call fcn.00408140
lea ecx, [esp + 0x48]
call fcn.00408140
jmp 0x413189
push ebx
call fcn.0041ad86
add esp, 4
push edi
call fcn.0041ad86
add esp, 4
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ad75
mov esp, ebp
pop ebp
ret 0x10