Function at 0x498530
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x571180]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push 0x30
mov dword [0x57bb04], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x57bad4
mov dword [0x57bb0c], 0x498b30
mov dword [0x57bacc], edx
mov dword [0x57bb10], eax
call fcn.004bd800
add esp, 0xc
mov dword [0x57bae0], 0
mov dword [0x57bad4], 0x30
mov dword [0x57bae4], 0
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x7f00
push 0
mov dword [0x57baf4], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [0x57baf0], eax
call esi
push 0x7f00
push 0
mov dword [0x57baec], eax
call esi
push 0
mov dword [0x57bb00], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x57bad4
mov dword [0x57bae8], eax
mov dword [0x57badc], 0x498830
mov dword [0x57bafc], 0x54f70c
mov dword [0x57baf8], 0x534829
mov dword [0x57bad8], 3
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x498821
push 0
push 0
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push SysReAllocString
push 0x534829
push str.Intermediate_D3D_Window
push 0x80088
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
mov dword [0x57bb48], eax
call esi
movaps xmm0, xmmword [0x550bd0]
lea eax, [esp + 0x14]
push eax
push dword [0x57bb48]
movups xmmword [esp + 0x1c], xmm0
call dword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
push 0x20
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x57bb84], ecx
test ecx, ecx
jne 0x4986b4
push SysReAllocString
push str.D3D9_initialization_failed.
call fcn.004bb280
mov dword [esp + 0x1c], str.D3D9_initialization_failed.
jmp 0x4987a0
push 0x57bb14
push 0x57bb4c
push 0x40
push dword [0x57bb48]
xorps xmm0, xmm0
mov dword [0x57bb60], 0
push 1
movlpd qword [0x57bb4c], xmm0
movlpd qword [0x57bb58], xmm0
mov dword [0x57bb68], 0
movlpd qword [0x57bb78], xmm0
mov dword [0x57bb6c], 1
mov dword [0x57bb64], 1
mov dword [0x57bb54], 0x15
mov dword [0x57bb70], 1
mov dword [0x57bb74], 0x50
mov dword [0x57bb80], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
test eax, eax
jns 0x4987df
mov ecx, dword [0x57bb14]
test ecx, ecx
je 0x49875d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x57bb14], 0
mov ecx, dword [0x57bb84]
test ecx, ecx
je 0x498777
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x57bb84], 0
push dword [0x57bae8]
push dword [0x57bafc]
call dword [sym.imp.USER32.dll_UnregisterClassA]
push SysReAllocString
push str.D3D9_Device_creation_failed.
call fcn.004bb280
mov dword [esp + 0x1c], str.D3D9_Device_creation_failed.
add esp, 8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov ecx, edi
push eax
push dword [0x54c330]
call fcn.004796f0
mov ecx, dword [esp + 0x10]
mov eax, dword [0x57bb48]
mov dword [ebx], eax
mov eax, dword [0x57bb14]
mov dword [ecx], eax
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004c2b19
mov esp, ebp
pop ebp
ret
push 0xa
push dword [0x57bb48]
call esi
push dword [0x57bb48]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x10]
mov eax, dword [0x57bb48]
mov dword [ebx], eax
mov eax, dword [0x57bb14]
mov dword [ecx], eax
cmp dword [edi + 8], 0
jne 0x4987cb
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2b19
mov esp, ebp
pop ebp
ret
push 0xde
call fcn.004d20bd
int3