Function at 0x480da0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xdc0], 1
jne 0x480dc2
call fcn.00487de0
push eax
push str.BBIW_start___d__n
call fcn.00487d20
add esp, 8
mov eax, dword [esi + 0xd0c]
xor ecx, ecx
cmp eax, ecx
jle 0x480dd7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esi + 0x2c]
cmp eax, ecx
mov dword [esi + 0x30], 3
mov dword [ebx], 0x30
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ebp
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
jne 0x480e34
push 0x7f00
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esi + 0x44], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x58], eax
jmp 0x480e44
and eax, 0xffff
push eax
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x44], eax
push ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0xdbc]
push 0
push ebp
mov ebp, dword [esp + 0x1c]
push 0
push 0
push ebx
push ebp
push 0
push 0
push ecx
push edi
push edi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x5c], eax
mov dword [edx], eax
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x480e91
push 0
mov ecx, esi
call fcn.00481fb0
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [esi + 0xdc0]
mov edi, 1
cmp eax, edi
jne 0x480eb3
call fcn.00487de0
push eax
push str.BBIW_window_created___d__n
call fcn.00487d20
add esp, 8
push ebx
push ebp
mov ecx, esi
call fcn.00481520
mov eax, dword [esi + 0x5c]
push edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push edi
mov dword [esi + 0xda0], eax
call ebx
mov dword [esi + 0xda4], eax
mov eax, dword [esi + 0xdc0]
cmp eax, edi
jne 0x480f15
call fcn.00487de0
mov edx, dword [esi + 0xda4]
push eax
mov eax, dword [esi + 0xda0]
push edx
push eax
push str.BBIW_dw_d_dh_d___d__n
call fcn.00487d20
add esp, 0x10
lea edi, [esi + 0x8b4]
push 0
push edi
push 0
call sub.DDRAW.dll_DirectDrawCreate
mov ebx, eax
mov eax, dword [esi + 0xdc0]
mov ebp, 1
cmp eax, ebp
jne 0x480f52
call fcn.00487de0
push eax
push ebx
mov ecx, esi
call fcn.004826d0
push eax
push str.BBIW_DDC_returncode_s___d__n
call fcn.00487d20
add esp, 0xc
test ebx, ebx
je 0x480f81
cmp dword [esi + 0xdc0], ebp
jne 0x480f71
call fcn.00487de0
push eax
push str.BBIW_DDC__DD_OK__returning_with_Destroy_____d__n
call fcn.00487d20
add esp, 8
push 0
mov ecx, esi
call fcn.00481fb0
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [edi]
mov edx, dword [esi + 0x5c]
push 8
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [esi + 0xdc0]
cmp eax, ebp
jne 0x480fd4
call fcn.00487de0
push eax
push edi
mov ecx, esi
call fcn.004826d0
push eax
push str.BBIW_setcoop_returncode_s___d__n
call fcn.00487d20
mov eax, dword [esi + 0xdc0]
add esp, 0xc
cmp eax, ebp
jne 0x480fd4
call fcn.00487de0
push eax
push str.BBIW_end___d__n
call fcn.00487d20
add esp, 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x1c