Function at 0x401620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4296f0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [0x431570], 0x30
mov dword [0x431574], 0x40
mov dword [0x431578], 0x401000
mov dword [0x43157c], 0
mov dword [0x431580], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x431584], eax
push 0x431570
movups xmmword [0x431588], xmm0
mov dword [0x431598], 0x42a2f0
mov dword [0x43159c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x431584]
push 0
push 0
push 0x12c
push 0x1f4
push 0x64
push 0x64
push 0x80000000
push 0x42a320
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x431568], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x431568]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x20
mov dword [ebp - 4], 0
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x431564], ecx
test ecx, ecx
je 0x4017a4
push 0x43156c
push 0x4315a0
push 0x40
push dword [0x431568]
xorps xmm0, xmm0
mov dword [0x4315b4], 0
push 1
movlpd qword [0x4315a0], xmm0
movlpd qword [0x4315ac], xmm0
mov dword [0x4315bc], 0
movlpd qword [0x4315cc], xmm0
mov dword [0x4315c0], 1
mov dword [0x4315b8], 1
mov dword [0x4315a8], 0
mov dword [0x4315c4], 1
mov dword [0x4315c8], 0x50
mov dword [0x4315d4], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.004012b0
cmp byte [0x43101c], 0
je 0x401af2
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
call ebx
test eax, eax
je 0x401814
nop
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call edi
cmp dword [ebp - 0x38], 0x12
je 0x401825
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call ebx
test eax, eax
jne 0x4017f0
mov eax, dword [0x4315e8]
test eax, eax
je 0x401835
mov ecx, dword [eax + 0xc8]
jmp 0x401837
cmp byte [0x43101c], 0
sete byte [0x43101c]
jmp 0x40185f
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x401855
test eax, eax
je 0x401855
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x401855
cmp dword [eax], 0
je 0x401855
call fcn.004246a0
call fcn.00424c20
call fcn.004065c0
mov dword [ebp - 4], 2
mov edx, 0x43101c
mov eax, dword [0x4315e8]
mov ecx, str.ta_mere_la_peugot
push 0x126
or dword [eax + 0x1c84], 3
mov dword [eax + 0x1c94], 0
mov dword [eax + 0x1c98], 0
mov dword [eax + 0x1c9c], 0
mov dword [eax + 0x1ca0], 0
mov dword [eax + 0x1c88], 1
mov dword [eax + 0x1ca4], 0x43fa0000
mov dword [eax + 0x1ca8], 0x43960000
mov dword [eax + 0x1c8c], 1
call fcn.0040b6b0
lea edx, [ebp - 0x5c]
call fcn.00426fd0
add esp, 4
call fcn.0040dfe0
mov dword [ebp - 4], 3
call fcn.004087e0
mov ecx, dword [0x43156c]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43156c]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43156c]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x43156c]
push 0
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
push 0xff000000
push 3
push 0
push 0
push ecx
call dword [eax + 0xac]
mov eax, dword [0x43156c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x401993
call fcn.00408b40
mov eax, dword [0x4315e8]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00424170
mov eax, dword [0x43156c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x43156c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4019c5
mov eax, dword [0x43156c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4019c5
call fcn.004011e0
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
call fcn.00401570
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x64]
cmp esi, 0xffb3b4bf
jne 0x4019ea
cmp ebx, 0x7fffffff
je 0x401a11
cmp ebx, 0x7fffffff
jg 0x401a00
jl 0x4019fc
cmp esi, 0xffb3b4bf
jae 0x401a00
or al, 0xff
jmp 0x401a02
mov al, 1
test al, al
jns 0x401a11
add esi, 0x4c4b40
adc ebx, 0
jmp 0x401a19
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], esi
nop
lea ecx, [ebp - 0x50]
call fcn.00401570
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
cmp esi, ecx
jne 0x401a3a
cmp ebx, eax
je 0x401ad3
cmp ebx, eax
jg 0x401a48
jl 0x401a44
cmp esi, ecx
jae 0x401a48
or al, 0xff
jmp 0x401a4a
mov al, 1
test al, al
jle 0x401ad3
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.00429510
mov ebx, dword [ebp - 0x44]
mov esi, eax
sub ebx, dword [ebp - 0x50]
mov edi, edx
mov eax, dword [ebp - 0x40]
mov ecx, ebx
sbb eax, dword [ebp - 0x4c]
mov edx, eax
mov dword [ebp - 0x54], eax
call fcn.004295f0
comisd xmm0, xmmword [0x42ea48]
jbe 0x401a97
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x401a9c
add esi, ebx
adc edi, dword [ebp - 0x54]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.00429380
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x1c], edx
sub esi, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
mov ebx, dword [ebp - 0x40]
add esp, 4
mov esi, dword [ebp - 0x44]
jmp 0x401a20
cmp byte [0x43101c], 0
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
jne 0x4017d6
mov dword [ebp - 4], 4
mov ecx, dword [0x4315e8]
test ecx, ecx
je 0x401b0b
mov edi, dword [ecx + 0xc8]
jmp 0x401b0d
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x401b7e
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x401b7e
cmp dword [esi], 0
je 0x401b7e
mov edx, dword [esi + 4]
test edx, edx
je 0x401b3d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4315e8]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x401b57
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4315e8]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x401b7e
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4315e8]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x401b90
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x4315e8]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x401bae
dec dword [ecx + 0x36c]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov eax, dword [0x4315e8]
add esp, 4
test eax, eax
je 0x401bcb
mov esi, dword [eax + 0xc4]
jmp 0x401bcd
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x401be3
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4315e8]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x401c01
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x4315e8]
add esp, 4
mov ecx, esi
call fcn.00407c20
mov eax, dword [0x4315e8]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [0x4315e8], eax
test esi, esi
je 0x401c45
mov ecx, esi
call fcn.00414f20
mov eax, dword [0x4315e8]
test eax, eax
je 0x401c3f
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 5
mov ecx, dword [0x43156c]
test ecx, ecx
je 0x401c66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x43156c], 0
mov ecx, dword [0x431564]
test ecx, ecx
je 0x401c80
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x431564], 0
push dword [0x431568]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x431584]
push dword [0x431598]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042847b
mov esp, ebp
pop ebp
ret 0x10