Function at 0x415000
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebx
push esi
mov eax, dword [ecx + 0xcf0]
push edi
push ebp
mov esi, ecx
test eax, eax
jle 0x415019
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret 0x1c
mov dword [esi + 0x10], 0x30
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], 3
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
test ebp, ebp
jne 0x415089
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
mov dword [esi + 0x28], eax
push 0
jmp 0x41509c
and ebp, 0xffff
push ebp
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
mov dword [esi + 0x28], eax
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebp, dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x10]
push eax
call ebp
mov ebp, dword [esp + 0x18]
push 0
push edi
push 0
mov edi, dword [esp + 0x20]
push 0
push ebp
push edi
push 0
push 0
push 0xcf0000
push ebx
push ebx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, eax
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4151a9
lea ecx, [esi + 0x44]
call fcn.00419190
mov eax, dword [esi + 0x89c]
test eax, eax
je 0x415103
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esi + 0x8a0]
test eax, eax
je 0x415113
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esi + 0x8a4]
test eax, eax
je 0x415123
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [esi + 0x89c], 0
mov dword [esi + 0x8a0], 0
mov dword [esi + 0x8a4], 0
mov eax, dword [esi + 0x898]
test eax, eax
je 0x415199
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415183
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
mov eax, dword [esi + 0x898]
push 8
mov ecx, dword [esi + 0x40]
push ecx
mov ebx, dword [eax]
push eax
call dword [ebx + 0x50]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xd80]
test eax, eax
jne 0x415183
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [esi + 0x898]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [esi + 0x898], 0
xor eax, eax
pop ebp
mov dword [esi + 0x40], 0
pop edi
pop esi
pop ebx
ret 0x1c
push ebp
mov ecx, esi
push edi
call fcn.004154b0
push 1
mov eax, dword [esi + 0x40]
push eax
lea edi, [esi + 0x898]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x40]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push edi
push 0
call sub.DDRAW.dll_DirectDrawCreate
test eax, eax
je 0x41528e
lea ecx, [esi + 0x44]
call fcn.00419190
mov eax, dword [esi + 0x89c]
test eax, eax
je 0x4151f8
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esi + 0x8a0]
test eax, eax
je 0x415208
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esi + 0x8a4]
test eax, eax
je 0x415218
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov dword [esi + 0x89c], 0
mov dword [esi + 0x8a0], 0
mov dword [esi + 0x8a4], 0
mov eax, dword [edi]
test eax, eax
je 0x41527e
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415270
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
mov eax, dword [edi]
push 8
mov ecx, dword [esi + 0x40]
push ecx
mov ebx, dword [eax]
push eax
call dword [ebx + 0x50]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xd80]
test eax, eax
jne 0x415270
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [edi]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [edi], 0
xor eax, eax
pop ebp
mov dword [esi + 0x40], 0
pop edi
pop esi
pop ebx
ret 0x1c
mov ecx, dword [edi]
push 8
mov eax, dword [esi + 0x40]
push eax
mov ebx, dword [ecx]
push ecx
call dword [ebx + 0x50]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret 0x1c