Function at 0x4086d0
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 0x40a5e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x40e00c]
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], 0x408d40
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 0x476e30
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cvttss2si eax, dword [0x4769c0]
push 0
push dword [ebp - 0x5c]
push 0
push 0
push eax
cvttss2si eax, dword [0x4769bc]
push eax
mov eax, dword [0x476e3c]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x69
push eax
mov eax, dword [0x476e38]
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 [0x476e20], ecx
test ecx, ecx
je 0x408862
mov eax, dword [0x476e38]
xorps xmm0, xmm0
push 0x476e24
push 0x476de8
push 0x20
push esi
mov dword [0x476de8], eax
mov eax, dword [0x476e3c]
push 1
movlpd qword [0x476df8], xmm0
mov dword [0x476e04], 0
movlpd qword [0x476e0c], xmm0
movlpd qword [0x476e14], xmm0
mov dword [0x476e08], 1
mov dword [0x476dec], eax
mov dword [0x476e00], 1
mov dword [0x476df0], 0
mov dword [0x476df4], 1
mov dword [0x476e1c], 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.004016d0
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.004016d0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x45800000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x45800000
push eax
mov edx, 0x40e038
mov dword [ebp - 0x78], 0x67b94
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
call fcn.00401a80
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x41e00000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x41e00000
push eax
mov edx, 0x475b80
mov dword [ebp - 0x78], 0x9d9
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 1
call fcn.00401a80
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x41e80000
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x41e80000
push eax
mov edx, 0x476560
mov dword [ebp - 0x78], 0x429
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 2
call fcn.00401a80
add esp, 0x28
call fcn.00401540
mov edi, dword [0x476e50]
cmp byte [edi + 4], 0
jne 0x408ad6
push 0x290
mov dword [edi], esi
call fcn.00409384
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 0x40b3d0
mov word [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x40c00000
mov dword [esi + 0x3c], 1
call fcn.00405d30
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 0x408a80
push 0x100
lea eax, [esi + 0x4e]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x476e2c]
add esp, 0xc
test ecx, ecx
mov byte [esi], 1
cmove ecx, esi
mov esi, dword [ebp - 0x84]
mov dword [0x476e2c], 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 0x408b2f
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 0x408c5a
mov eax, dword [0x476e24]
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 [0x476e24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x408bb3
mov eax, dword [0x476e24]
push 1
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x476e24]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x476e24]
push 6
push 0x14
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov ecx, dword [0x476e50]
call fcn.004067e0
mov eax, dword [0x476e24]
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 [0x476e24]
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 0x408c13
mov eax, dword [0x476e24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x408c13
call fcn.00401630
mov eax, dword [0x476e24]
push 0x476de8
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
call fcn.00401540
mov esi, dword [0x476e2c]
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 0x408b00
call fcn.00402cd0
call fcn.00401630
mov eax, dword [0x476eb4]
mov dword [ebp - 0x84], eax
mov esi, dword [eax]
cmp esi, eax
je 0x408ca3
nop
mov edi, dword [esi + 0xc]
push 0x4c
push edi
call fcn.0040960a
add esp, 8
test edi, edi
je 0x408c99
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [ebp - 0x84]
jne 0x408c80
mov eax, dword [0x476ed4]
mov dword [ebp - 0x84], eax
mov esi, dword [eax]
cmp esi, eax
je 0x408cd7
mov edi, dword [esi + 0xc]
push 0x14
push edi
call fcn.0040960a
add esp, 8
test edi, edi
je 0x408ccd
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [ebp - 0x84]
jne 0x408cb4
mov ecx, dword [0x476e24]
test ecx, ecx
je 0x408ce7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [0x476e20]
mov dword [0x476e24], 0
test ecx, ecx
je 0x408d01
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [ebp - 0x5c]
mov dword [0x476e20], 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.00409191
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10