Function at 0x48acc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f9a10]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, dword [esp + 0x6c]
xor ebx, ebx
push 0x7f00
push ebx
mov word [0x4f9a18], di
mov word [0x4f9a1c], bp
mov dword [0x4f7914], 0x48a700
mov dword [0x4f791c], 0x48a730
mov dword [0x4f7978], 0x48a760
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0x48a7a0
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x68]
push ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x48ad57
mov edx, dword [0x4f9a10]
push eax
push edx
jmp 0x48ad5d
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x48ad81
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [0x4f9a10]
mov edx, dword [esp + 0x80]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4f9a0c], eax
cmp eax, ebx
je 0x48ad77
push ebp
push edi
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [0x4f9a0c]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push ecx
call esi
mov edx, dword [0x4f9a0c]
push eax
push edx
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x4f9a0c]
push 0xfffffffffffffff0
push eax
call esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [0x4f9a0c]
push ebx
push edx
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [0x4f9a08]
mov eax, dword [0x4f9a0c]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4f9a0c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040df80
test eax, eax
je 0x48ad77
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x48aee3
mov edx, dword [0x4f9a10]
push eax
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
cmp byte [0x4ea67c], bl
je 0x48af49
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
call edi
test eax, eax
je 0x48aec6
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
call ebp
test eax, eax
je 0x48af49
mov eax, dword [0x4f9a0c]
lea edx, [esp + 0x20]
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateAccelerator]
test eax, eax
jne 0x48aecf
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x48aecf
call fcn.0040d160
test eax, eax
je 0x48af49
cmp byte [0x4ea67c], bl
jne 0x48ae77
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp byte [0x4ea67c], bl
je 0x48af49
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
je 0x48af37
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
test eax, eax
je 0x48af49
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x20]
push eax
call ebx
jmp 0x48af40
call fcn.0040d160
test eax, eax
je 0x48af49
cmp byte [0x4ea67c], 0
jne 0x48af03
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret