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

Disassembly:
sub esp, 0x54
mov eax, dword [0x4ca970]
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 byte [0x4ca974], 1
mov word [0x4ca984], di
mov word [0x4ca988], bp
mov dword [0x4c8874], 0x474cc0
mov dword [0x4c887c], 0x474cf0
mov dword [0x4c88d8], 0x474d20
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], 0x4746b0
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 0x474e7e
mov edx, dword [0x4ca970]
push eax
push edx
jmp 0x474e84
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 0x474ea8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [0x4ca970]
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 [0x4ca96c], eax
cmp eax, ebx
je 0x474e9e
push ebp
push edi
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [0x4ca96c]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push ecx
call esi
mov edx, dword [0x4ca96c]
push eax
push edx
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x4ca96c]
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 [0x4ca96c]
push ebx
push edx
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [0x4ca968]
mov eax, dword [0x4ca96c]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4ca96c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0043f8d0
test eax, eax
je 0x474e9e
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x47500c
mov edx, dword [0x4ca970]
push eax
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
cmp byte [0x4bd59c], bl
je 0x475076
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, edi
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
call edi
test eax, eax
je 0x474fef
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
call ebp
test eax, eax
je 0x475076
mov eax, dword [0x4ca96c]
lea edx, [esp + 0x20]
push edx
push esi
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x474ff8
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 0x474ff8
call fcn.0043eac0
test eax, eax
je 0x475076
cmp byte [0x4bd59c], bl
jne 0x474fa0
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp byte [0x4bd59c], bl
je 0x475076
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]
lea esp, [esp]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
je 0x475064
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
test eax, eax
je 0x475076
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x20]
push eax
call ebx
jmp 0x47506d
call fcn.0043eac0
test eax, eax
je 0x475076
cmp byte [0x4bd59c], 0
jne 0x475030
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret