Function at 0x407a70
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x40c00c]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
push 0x7f00
xorps xmm0, xmm0
mov dword [esp + 0x24], 0x30
push 0
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], 0x408090
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], str.Main
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x4749d8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cvttss2si eax, dword [0x474560]
push 0
push dword [esp + 0x38]
push 0
push 0
push eax
cvttss2si eax, dword [0x47455c]
push eax
mov eax, dword [0x4749e4]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x69
push eax
mov eax, dword [0x4749e0]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
push eax
push 0x80000000
push str.Main
push dword [esp + 0x70]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 0x20
mov dword [esp + 0x1c], esi
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x4749c8], ecx
test ecx, ecx
je 0x407bea
mov eax, dword [0x4749e0]
xorps xmm0, xmm0
push 0x4749cc
push 0x474990
push 0x20
push esi
mov dword [0x474990], eax
mov eax, dword [0x4749e4]
push 1
movlpd qword [0x4749a0], xmm0
mov dword [0x4749ac], 0
movlpd qword [0x4749b4], xmm0
movlpd qword [0x4749bc], xmm0
mov dword [0x4749b0], 1
mov dword [0x474994], eax
mov dword [0x4749a8], 1
mov dword [0x474998], 0
mov dword [0x47499c], 1
mov dword [0x4749c4], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 6
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x190
push eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xc
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.00401610
add esp, 0x10
mov dword [esp + 0x14], 6
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x2bc
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x1c], 1
push eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401610
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x45800000
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x68], 0x45800000
push eax
mov edx, 0x40c038
mov dword [esp + 0x2c], 0x67b94
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.00401970
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0x41e00000
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x70], 0x41e00000
push eax
mov edx, 0x473b80
mov dword [esp + 0x34], 0x9d9
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 1
call fcn.00401970
add esp, 0x20
call fcn.00401480
mov edi, dword [0x4749f8]
cmp byte [edi + 4], 0
jne 0x407e35
push 0x290
mov dword [edi], esi
call fcn.004087e9
mov esi, eax
add esp, 4
lea ecx, [esi + 0x278]
xorps xmm0, xmm0
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
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
push 0x40a390
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
mov byte [eax + 7], 0
lea eax, [eax + 1]
mov byte [eax - 1], 0
sub ecx, 1
jne 0x407de1
push 0x100
lea eax, [esi + 0x4e]
push ecx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x4749d4]
add esp, 0xc
test ecx, ecx
mov byte [esi], 1
cmove ecx, esi
mov esi, dword [esp + 0x18]
mov dword [0x4749d4], 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 [esp + 0x78], 0
movaps xmmword [esp + 0x60], xmm0
movq qword [esp + 0x70], xmm0
nop dword [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407e92
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407fc0
mov eax, dword [0x4749cc]
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 [0x4749cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x407f16
mov eax, dword [0x4749cc]
push 1
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x4749cc]
push 5
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x4749cc]
push 6
push 0x14
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov ecx, dword [0x4749f8]
call fcn.00406510
mov eax, dword [0x4749cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea eax, [esp + 0x50]
xorps xmm0, xmm0
push eax
movaps xmmword [esp + 0x54], xmm0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x4749cc]
lea edx, [esp + 0x50]
push 0
push 0
push edx
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x407f79
mov eax, dword [0x4749cc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x407f79
call fcn.00401570
mov eax, dword [0x4749cc]
push 0x474990
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
call fcn.00401480
mov esi, dword [0x4749d4]
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 [esp + 0x64], 0x12
jne 0x407e60
call fcn.00402b00
call fcn.00401570
mov eax, dword [0x474a04]
mov dword [esp + 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x408005
mov edi, dword [esi + 0xc]
push 0x4c
push edi
call fcn.00408a6f
add esp, 8
test edi, edi
je 0x407ffd
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [esp + 0x18]
jne 0x407fe4
mov eax, dword [0x474a24]
mov dword [esp + 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x408035
mov edi, dword [esi + 0xc]
push 0x14
push edi
call fcn.00408a6f
add esp, 8
test edi, edi
je 0x40802d
mov dword [esi + 0xc], 0x8123
mov esi, dword [esi]
cmp esi, dword [esp + 0x18]
jne 0x408014
mov ecx, dword [0x4749cc]
test ecx, ecx
je 0x408045
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [0x4749c8]
mov dword [0x4749cc], 0
test ecx, ecx
je 0x40805f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push dword [esp + 0x34]
mov dword [0x4749c8], 0
push str.Main
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004085f6
mov esp, ebp
pop ebp
ret 0x10