Function at 0x40a790
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x67f3c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6827cc], 0
push esi
movss dword [ebp - 0x40], xmm1
movss dword [ebp - 0x48], xmm0
jne 0x40a7f9
lea eax, [ebp - 0x30]
push eax
push 0x20b25
push 0x63b7f0
push dword [0x6829e0]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
test eax, eax
jne 0x40a7f9
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x30]
mov dword [0x6827cc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x682a54], eax
mov eax, dword [ebp - 8]
mov dword [0x682af8], eax
call fcn.00474e90
movss xmm0, dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x40]
push 0
push eax
movss dword [ebp - 0x48], xmm0
call fcn.00480c60
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 8
mov dword [ebp - 0x4c], 0x3f000000
mov dword [ebp - 0x48], 0x3f000000
push 1
call esi
push 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x672008]
movss dword [ebp - 0x40], xmm0
call esi
movd xmm0, eax
lea eax, [ebp - 0x4c]
cvtdq2ps xmm0, xmm0
push eax
lea eax, [ebp - 0x34]
push 2
push eax
mulss xmm0, dword [0x672008]
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x40]
movss dword [ebp - 0x30], xmm0
call fcn.00480bd0
add esp, 0xc
push 0x2b
push 0
push 0x57531c
call fcn.00465250
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call fcn.004757c0
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.004757e0
add esp, 4
call fcn.004757a0
movss xmm0, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
movss xmm2, dword [ebp - 0x3c]
movss xmm1, dword [ebp - 0x38]
addss xmm0, xmm2
push 0x20ffffff
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], 0x3f800000
push ecx
movss dword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x34]
movss xmm0, dword [ebp - 0x28]
push ecx
addss xmm0, xmm1
mov dword [ebp - 0x40], 0x3f800000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x4c], 0
push ecx
push dword [0x6827cc]
mov ecx, eax
mov dword [ebp - 0x48], 0
movss dword [ebp - 0x30], xmm0
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 8], xmm1
call fcn.00488320
call fcn.004757a0
movss xmm0, dword [ebp - 0x2c]
movss xmm2, dword [ebp - 0x3c]
movss xmm1, dword [ebp - 0x38]
addss xmm0, xmm2
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x28]
push 0xff000000
push 0x10000000
push 0x10000000
push 0xff000000
lea ecx, [ebp - 0xc]
movss dword [ebp - 0x44], xmm2
push ecx
addss xmm0, xmm1
movss dword [ebp - 0x40], xmm1
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
movss dword [ebp - 8], xmm0
call fcn.00489400
push str.Welcome
call fcn.004a2a90
mov dword [esp], 0xbf800000
push ecx
mov dword [esp], 0
call fcn.0047fcd0
lea eax, [ebp - 0xc]
push eax
call fcn.004757e0
add esp, 8
movss xmm0, dword [eax]
subss xmm0, dword [0x67205c]
movss dword [esp], xmm0
call fcn.004806d0
add esp, 4
push 0x57532c
call fcn.004a2a90
add esp, 4
push 0
call fcn.004766c0
add esp, 4
test al, al
je 0x40a9dc
push 7
call fcn.00480a90
add esp, 4
push 0
call fcn.004765e0
add esp, 4
test al, al
jne 0x40adc3
push ecx
mov dword [esp], 0x3f800000
push 0xd
call fcn.0047ca90
push 0x10000000
push 7
call fcn.0047c920
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x41200000
push eax
push 0xb
mov dword [ebp - 8], 0x41200000
call fcn.0047ca10
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xe
mov dword [ebp - 8], 0x41400000
call fcn.0047ca10
push 0x575330
call fcn.004a2990
add esp, 0x20
mov dword [esp], 0x42c80000
call fcn.004806d0
add esp, 4
call fcn.00468ed0
push 0x57531c
call fcn.004a2990
movss xmm0, dword [ebp - 0x2c]
subss xmm0, dword [0x672078]
movss dword [esp], xmm0
call fcn.00480b70
add esp, 4
call fcn.00474bd0
fsub dword [0x672038]
push ecx
fstp dword [esp]
call fcn.00480720
add esp, 4
push 0
push 0
push 0
push 0x100
push 0x6826a8
push str.login_input
call fcn.0049b3b0
push 0x575344
call fcn.004a2990
add esp, 0x14
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.0047fcd0
movss xmm0, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
subss xmm0, dword [0x67206c]
add esp, 4
mov dword [esp], 0xbf800000
push 0
push 0
push str.Forgot_password
push eax
movss dword [ebp - 0x40], xmm0
call fcn.00469880
movss xmm0, dword [ebp - 0x40]
add esp, 0x10
subss xmm0, dword [eax]
movss dword [esp], xmm0
call fcn.004806d0
add esp, 4
push str.Forgot_password
call fcn.004a2a90
add esp, 4
push 0
call fcn.004766c0
add esp, 4
test al, al
je 0x40ab3e
push 7
call fcn.00480a90
add esp, 4
push 0
call fcn.004765e0
add esp, 4
test al, al
je 0x40ab64
push 1
push 0
push 0
push str.https:__account.ankama.com_fr_compte_connexion_impossible
push 0x5753d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movss xmm0, dword [ebp - 0x2c]
subss xmm0, dword [0x672078]
push ecx
movss dword [esp], xmm0
call fcn.00480b70
add esp, 4
call fcn.00474bd0
fsub dword [0x672038]
push ecx
fstp dword [esp]
call fcn.00480720
add esp, 4
push 0
push 0
push 0x8000
push 0x100
push 0x6825a8
push str.password_input
call fcn.0049b3b0
push 1
call fcn.0047c4b0
add esp, 0x1c
push 3
call fcn.0047c500
add esp, 4
call fcn.004736b0
push 0x5753f4
call fcn.004a2990
mov dword [esp], 0x42c80000
call fcn.004806d0
movss xmm0, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
subss xmm0, dword [0x672078]
add esp, 4
mov dword [ebp - 8], 0x42200000
push eax
push str.Sign_In
movss dword [ebp - 0xc], xmm0
call fcn.0049a1a0
add esp, 8
test al, al
je 0x40ac32
push 0
push 0
push 0
push 0x40b130
push 0
push 0
mov dword [0x6825a0], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x6825a0]
cmp eax, 1
jne 0x40ac80
push ecx
mov dword [esp], 0x43660000
call fcn.004806d0
movaps xmm0, xmmword [0x672250]
lea edx, [ebp - 0x14]
movss xmm2, dword [0x672020]
movss xmm1, dword [0x672054]
mov dword [esp], 0x40e00000
push ecx
movups xmmword [ebp - 0x14], xmm0
mov dword [esp], 0x40c00000
call fcn.00405bc0
jmp 0x40ad35
cmp eax, 2
jne 0x40acd5
push ecx
mov dword [esp], 0xbf800000
lea eax, [ebp - 0xc]
push 0
push 0
push str.Login_success
push eax
mov byte [0x6827a8], 1
call fcn.00469880
movss xmm1, dword [0x67207c]
add esp, 0x10
movss xmm0, dword [eax]
mulss xmm0, dword [0x672008]
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.004806d0
add esp, 4
push str._nLogin_success
jmp 0x40ad21
cmp eax, 0xffffffff
jne 0x40ad38
push ecx
mov dword [esp], 0xbf800000
lea eax, [ebp - 0xc]
push 0
push 0
push str.Login_failed
push eax
call fcn.00469880
movss xmm1, dword [0x67207c]
add esp, 0x10
movss xmm0, dword [eax]
mulss xmm0, dword [0x672008]
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.004806d0
add esp, 4
push str._nLogin_failed
movaps xmm0, xmmword [0x672280]
lea eax, [ebp - 0x14]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.004a29f0
add esp, 8
call fcn.004757a0
movss xmm0, dword [ebp - 0x2c]
mov esi, eax
addss xmm0, dword [ebp - 0x3c]
push ecx
mov dword [esp], 0xbf800000
lea eax, [ebp - 0x4c]
push 0
push 0
push str._2022___AzureProd
push eax
movss dword [ebp - 0x40], xmm0
call fcn.00469880
movss xmm0, dword [ebp - 0x40]
add esp, 0x14
mov ecx, esi
subss xmm0, dword [eax]
push 0
push str._2022___AzureProd
push 0x20ffffff
lea eax, [ebp - 0xc]
subss xmm0, dword [0x672054]
push eax
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x28]
addss xmm0, dword [ebp - 0x38]
subss xmm0, dword [0x672060]
movss dword [ebp - 8], xmm0
call fcn.00489580
call fcn.004729c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00511a59
mov esp, ebp
pop ebp
ret
push 0
call fcn.005172b1
int3