Function at 0x402140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a950
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x432040]
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 [0x4325f0], 0x30
mov dword [0x4325f4], 0x40
mov dword [0x4325f8], 0x401030
mov dword [0x4325fc], 0
mov dword [0x432600], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x432604], eax
push 0x4325f0
movups xmmword [0x432608], xmm0
mov dword [0x432618], 0x42b35c
mov dword [0x43261c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x432604]
push 0
push 0
push 0x118
push 0x12c
push 0
push 0
push 0x80000000
push str.8518259
push str.8521945815
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4325e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4325e8]
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 [0x4325e4], ecx
test ecx, ecx
je 0x4022c4
push 0x4325ec
push 0x432620
push 0x40
push dword [0x4325e8]
xorps xmm0, xmm0
mov dword [0x432634], 0
push 1
movlpd qword [0x432620], xmm0
movlpd qword [0x43262c], xmm0
mov dword [0x43263c], 0
movlpd qword [0x43264c], xmm0
mov dword [0x432640], 1
mov dword [0x432638], 1
mov dword [0x432628], 0
mov dword [0x432644], 1
mov dword [0x432648], 0x50
mov dword [0x432654], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.004012e0
push 0x11
push dword [0x4325e8]
call dword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
cmp byte [0x4320a4], 0
je 0x402574
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
call ebx
test eax, eax
je 0x402334
nop
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call edi
cmp dword [ebp - 0x28], 0x12
je 0x402345
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x402310
mov eax, dword [0x432674]
test eax, eax
je 0x402355
mov ecx, dword [eax + 0xc8]
jmp 0x402357
cmp byte [0x4320a4], 0
sete byte [0x4320a4]
jmp 0x40237f
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x402375
test eax, eax
je 0x402375
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x402375
cmp dword [eax], 0
je 0x402375
call fcn.00425750
call fcn.00425cd0
call fcn.00406fd0
call fcn.004016c0
mov dword [ebp - 4], 2
call fcn.00409220
mov ecx, dword [0x4325ec]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4325ec]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4325ec]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4325ec]
push 0
push ecx
mov dword [esp], 0
mov eax, dword [ecx]
push 0
push 3
push 0
push 0
push ecx
call dword [eax + 0xac]
mov eax, dword [0x4325ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x40242e
call fcn.004095b0
mov eax, dword [0x432674]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00425220
mov eax, dword [0x4325ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4325ec]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x402460
mov eax, dword [0x4325ec]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x402460
call fcn.00401210
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00402040
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.00402040
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cmp esi, edx
jne 0x40248f
cmp ebx, ecx
je 0x402555
cmp ebx, ecx
jg 0x40249d
jl 0x402499
cmp esi, edx
jae 0x40249d
or al, 0xff
jmp 0x40249f
mov al, 1
test al, al
jle 0x402555
mov edi, esi
mov esi, ebx
sub edi, edx
sbb esi, ecx
cmp edi, 0x914f0000
jne 0x4024c3
cmp esi, 0x4e94
je 0x402546
cmp esi, 0x4e94
jg 0x4024d9
jl 0x4024d5
cmp edi, 0x914f0000
jae 0x4024d9
or al, 0xff
jmp 0x4024db
mov al, 1
test al, al
jns 0x402546
push 0
push 0xf4240
push esi
push edi
call fcn.0042a5b0
push 0
mov ebx, eax
mov eax, edx
push 0xf4240
push eax
push ebx
mov dword [ebp - 0x3c], eax
call fcn.0042a740
cmp eax, edi
jne 0x40250a
cmp edx, esi
je 0x402535
cmp edx, esi
jg 0x402518
jl 0x402514
cmp eax, edi
jae 0x402518
or al, 0xff
jmp 0x40251a
mov al, 1
test al, al
jns 0x402535
mov eax, dword [ebp - 0x3c]
add ebx, 1
push ebx
adc eax, 0
mov dword [ebp - 0x3c], eax
call sub.KERNEL32.dll_Sleep
jmp 0x40246f
mov eax, dword [ebp - 0x3c]
push ebx
mov dword [ebp - 0x3c], eax
call sub.KERNEL32.dll_Sleep
jmp 0x40246f
push 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x402472
cmp byte [0x4320a4], 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 0x4022f6
mov dword [ebp - 4], 3
mov ecx, dword [0x432674]
test ecx, ecx
je 0x40258d
mov edi, dword [ecx + 0xc8]
jmp 0x40258f
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x402600
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x402600
cmp dword [esi], 0
je 0x402600
mov edx, dword [esi + 4]
test edx, edx
je 0x4025bf
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x432674]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x4025d9
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x432674]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x402600
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x432674]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x402612
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x432674]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x402630
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 [0x432674]
add esp, 4
test eax, eax
je 0x40264d
mov esi, dword [eax + 0xc4]
jmp 0x40264f
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x402665
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x432674]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x402683
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x432674]
add esp, 4
mov ecx, esi
call fcn.00408650
cmp dword [0x432674], esi
jne 0x4026a8
mov dword [0x432674], 0
test esi, esi
je 0x4026c8
mov ecx, esi
call fcn.004158f0
mov eax, dword [0x432674]
test eax, eax
je 0x4026c2
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 4
mov ecx, dword [0x4325ec]
test ecx, ecx
je 0x4026e9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4325ec], 0
mov ecx, dword [0x4325e4]
test ecx, ecx
je 0x402703
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4325e4], 0
push dword [0x4325e8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x432604]
push dword [0x432618]
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.00429559
mov esp, ebp
pop ebp
ret 0x10