Function at 0x401960
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4311c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x439040]
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 [0x439608], 0x30
mov dword [0x43960c], 0x40
mov dword [0x439610], 0x401020
mov dword [0x439614], 0
mov dword [0x439618], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x43961c], eax
push 0x439608
movups xmmword [0x439620], xmm0
mov dword [0x439630], 0x432258
mov dword [0x439634], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x43961c]
push 0
push 0
push 0x12c
push 0x1f4
push 0x64
push 0x64
push 0x80000000
push str.Recoil
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x439600], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x439600]
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 [0x4395fc], ecx
test ecx, ecx
je 0x401ae4
push 0x439604
push 0x439638
push 0x40
push dword [0x439600]
xorps xmm0, xmm0
mov dword [0x43964c], 0
push 1
movlpd qword [0x439638], xmm0
movlpd qword [0x439644], xmm0
mov dword [0x439654], 0
movlpd qword [0x439664], xmm0
mov dword [0x439658], 1
mov dword [0x439650], 1
mov dword [0x439640], 0
mov dword [0x43965c], 1
mov dword [0x439660], 0x50
mov dword [0x43966c], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.004012d0
cmp byte [0x4390a8], 0
je 0x401dd1
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 0x401b45
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call edi
cmp dword [ebp - 0x28], 0x12
je 0x401b56
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x401b21
mov eax, dword [0x439680]
test eax, eax
je 0x401b66
mov ecx, dword [eax + 0xc8]
jmp 0x401b68
cmp byte [0x4390a8], 0
sete byte [0x4390a8]
jmp 0x401b90
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x401b86
test eax, eax
je 0x401b86
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x401b86
cmp dword [eax], 0
je 0x401b86
call fcn.00425bd0
call fcn.00426150
call fcn.00406990
call fcn.00401590
mov dword [ebp - 4], 2
call fcn.00408c40
mov ecx, dword [0x439604]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x439604]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x439604]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x439604]
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 [0x439604]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x401c42
call fcn.00408fd0
mov eax, dword [0x439680]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.004256a0
mov eax, dword [0x439604]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x439604]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x401c74
mov eax, dword [0x439604]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x401c74
call fcn.00401200
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00401860
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp ebx, 0xffb3b4bf
jne 0x401c99
cmp esi, 0x7fffffff
je 0x401cc0
cmp esi, 0x7fffffff
jg 0x401caf
jl 0x401cab
cmp ebx, 0xffb3b4bf
jae 0x401caf
or al, 0xff
jmp 0x401cb1
mov al, 1
test al, al
jns 0x401cc0
add ebx, 0x4c4b40
adc esi, 0
jmp 0x401cc8
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
nop
lea ecx, [ebp - 0x48]
call fcn.00401860
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cmp ebx, edx
jne 0x401cea
cmp esi, ecx
je 0x401db2
cmp esi, ecx
jg 0x401cf8
jl 0x401cf4
cmp ebx, edx
jae 0x401cf8
or al, 0xff
jmp 0x401cfa
mov al, 1
test al, al
jle 0x401db2
sub ebx, edx
sbb esi, ecx
cmp ebx, 0x914f0000
jne 0x401d34
cmp esi, 0x4e94
jne 0x401d3a
push 0
push 0xf4240
push esi
push ebx
call fcn.00430e10
mov edi, eax
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x401cd0
cmp esi, 0x4e94
jg 0x401d4a
jl 0x401d46
cmp ebx, 0x914f0000
jae 0x401d4a
or al, 0xff
jmp 0x401d4c
mov al, 1
test al, al
jle 0x401d66
mov edi, 0x5265c00
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x401cd0
push 0
push 0xf4240
push esi
push ebx
call fcn.00430e10
push 0
push 0xf4240
mov edi, eax
push edx
push edi
call fcn.00430fa0
cmp eax, ebx
jne 0x401d8c
cmp edx, esi
je 0x401da1
cmp edx, esi
jg 0x401d9a
jl 0x401d96
cmp eax, ebx
jae 0x401d9a
or al, 0xff
jmp 0x401d9c
mov al, 1
test al, al
jns 0x401da1
inc edi
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x401cd0
cmp byte [0x4390a8], 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 0x401b08
mov dword [ebp - 4], 3
mov ecx, dword [0x439680]
test ecx, ecx
je 0x401dea
mov edi, dword [ecx + 0xc8]
jmp 0x401dec
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x401e5d
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x401e5d
cmp dword [esi], 0
je 0x401e5d
mov edx, dword [esi + 4]
test edx, edx
je 0x401e1c
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x439680]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x401e36
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x439680]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x401e5d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x439680]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x401e6f
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x439680]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x401e8d
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 [0x439680]
add esp, 4
test eax, eax
je 0x401eaa
mov esi, dword [eax + 0xc4]
jmp 0x401eac
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x401ec2
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x439680]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x401ee0
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x439680]
add esp, 4
mov ecx, esi
call fcn.00408050
cmp dword [0x439680], esi
jne 0x401f05
mov dword [0x439680], 0
test esi, esi
je 0x401f25
mov ecx, esi
call fcn.00415d90
mov eax, dword [0x439680]
test eax, eax
je 0x401f1f
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 4
mov ecx, dword [0x439604]
test ecx, ecx
je 0x401f46
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x439604], 0
mov ecx, dword [0x4395fc]
test ecx, ecx
je 0x401f60
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4395fc], 0
push dword [0x439600]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x43961c]
push dword [0x439630]
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.0042fe66
mov esp, ebp
pop ebp
ret 0x10