Function at 0x409160
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b0d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x40f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7f00
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x30
push 0
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0x4097d0
movups xmmword [ebp - 0x64], xmm0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], str.Main
mov dword [ebp - 0x44], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x477df0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cvttss2si eax, dword [0x477988]
push 0
push dword [ebp - 0x5c]
push 0
push 0
push eax
cvttss2si eax, dword [0x477984]
push eax
mov eax, dword [0x477dfc]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x69
push eax
mov eax, dword [0x477df8]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
push eax
push 0x80000000
push str.Main
push dword [ebp - 0x48]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0x20
mov dword [ebp - 0x84], esi
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x477de0], ecx
test ecx, ecx
je 0x4092f2
mov eax, dword [0x477df8]
xorps xmm0, xmm0
push 0x477de4
push 0x477da8
push 0x20
push esi
mov dword [0x477da8], eax
mov eax, dword [0x477dfc]
push 1
movlpd qword [0x477db8], xmm0
mov dword [0x477dc4], 0
movlpd qword [0x477dcc], xmm0
movlpd qword [0x477dd4], xmm0
mov dword [0x477dc8], 1
mov dword [0x477dac], eax
mov dword [0x477dc0], 1
mov dword [0x477db0], 0
mov dword [0x477db4], 1
mov dword [0x477ddc], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 6
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x190
push eax
push ecx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0xc
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0
call fcn.004015f0
add esp, 0x10
mov dword [ebp - 0x78], 6
lea eax, [ebp - 0x78]
mov dword [ebp - 0x74], 0x2bc
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x88], 1
push eax
lea eax, [ebp - 0x74]
push eax
push ecx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x88]
call fcn.004015f0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x45800000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x45800000
push eax
mov edx, 0x40f030
mov dword [ebp - 0x78], 0x67b94
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
call fcn.00401790
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x41e00000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x41e00000
push eax
mov edx, 0x476b78
mov dword [ebp - 0x78], 0x9d9
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 1
call fcn.00401790
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x41e80000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x41e80000
push eax
mov edx, 0x477558
mov dword [ebp - 0x78], 0x429
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 2
call fcn.00401790
add esp, 0x28
call fcn.00401460
mov edi, dword [0x477e10]
cmp byte [edi + 4], 0
jne 0x409566
push 0x290
mov dword [edi], esi
call fcn.00409e14
mov esi, eax
add esp, 4
lea ecx, [esi + 0x278]
mov dword [ecx], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x254], 0
mov dword [esi + 0x250], 0
mov dword [esi + 0x25c], 0
mov dword [esi + 0x258], 0
mov dword [esi + 0x260], 0
mov byte [esi + 0x264], 0
mov dword [esi + 0x268], 0
mov dword [esi + 0x26c], 0
mov dword [esi + 0x270], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 4], 0xffffffff
push 0
push 0x40c3d0
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x40c00000
mov dword [esi + 0x3c], 1
call fcn.00405b80
lea eax, [esi + 0x40]
mov ecx, 7
nop dword [eax]
mov byte [eax + 7], 0
lea eax, [eax + 1]
mov byte [eax - 1], 0
sub ecx, 1
jne 0x409510
push 0x100
lea eax, [esi + 0x4e]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x477dec]
add esp, 0xc
test ecx, ecx
mov byte [esi], 1
cmove ecx, esi
mov esi, dword [ebp - 0x84]
mov dword [0x477dec], ecx
mov dword [ecx + 0x3c], 0xff
mov eax, dword [edi]
mov dword [ecx + 0x274], eax
mov dword [edi + 8], 0
mov byte [edi + 4], 1
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
nop dword [eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4095bf
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4096ea
mov eax, dword [0x477de4]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0
push 0xff728c99
push 1
push 0
push 0
push eax
call dword [ecx + 0xac]
mov eax, dword [0x477de4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x409643
mov eax, dword [0x477de4]
push 1
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x477de4]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x477de4]
push 6
push 0x14
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov ecx, dword [0x477e10]
call fcn.004065b0
mov eax, dword [0x477de4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x477de4]
lea edx, [ebp - 0x24]
push 0
push 0
push edx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4096a3
mov eax, dword [0x477de4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4096a3
call fcn.00401550
mov eax, dword [0x477de4]
push 0x477da8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
call fcn.00401460
mov esi, dword [0x477dec]
mov ecx, 0x100
movzx eax, byte [esi + 0x47]
lea edi, [esi + 0x14e]
mov byte [esi + 0x40], al
movzx eax, byte [esi + 0x48]
mov byte [esi + 0x41], al
movzx eax, byte [esi + 0x49]
mov byte [esi + 0x42], al
movzx eax, byte [esi + 0x4a]
mov byte [esi + 0x43], al
movzx eax, byte [esi + 0x4b]
mov byte [esi + 0x44], al
movzx eax, byte [esi + 0x4c]
mov byte [esi + 0x45], al
movzx eax, byte [esi + 0x4d]
mov byte [esi + 0x46], al
add esi, 0x4e
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x3c], 0x12
jne 0x409590
call fcn.00402a50
call fcn.00401550
mov eax, dword [0x477e1c]
mov dword [ebp - 0x84], eax
mov esi, dword [eax]
cmp esi, eax
je 0x409733
nop
mov edi, dword [esi + 0xc]
push 0x4c
push edi
call fcn.0040a09a
add esp, 8
test edi, edi
je 0x409729
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [ebp - 0x84]
jne 0x409710
mov eax, dword [0x477e3c]
mov dword [ebp - 0x84], eax
mov esi, dword [eax]
cmp esi, eax
je 0x409767
mov edi, dword [esi + 0xc]
push 0x14
push edi
call fcn.0040a09a
add esp, 8
test edi, edi
je 0x40975d
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [ebp - 0x84]
jne 0x409744
mov ecx, dword [0x477de4]
test ecx, ecx
je 0x409777
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [0x477de0]
mov dword [0x477de4], 0
test ecx, ecx
je 0x409791
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x5c]
mov dword [0x477de0], 0
push str.Main
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
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409c21
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10