Function at 0x46c740
Capabilities:
Hide graphical window
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [0x4878bc]
push 0x66
push eax
mov dword [esp + 0x6c], 3
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x80], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], 0x439870
mov dword [esp + 0x6c], 0x46c440
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call edi
mov esi, eax
sub esi, 0x258
push 0x11
shr esi, 1
call edi
mov ecx, dword [0x487cd4]
mov edx, dword [0x4878bc]
mov ebx, dword [0x487cd0]
push 0
push edx
sub eax, 0x190
push 0
shr eax, 1
neg ecx
sbb ecx, ecx
and ecx, ebx
push ecx
push 0x190
push 0x258
push eax
push esi
push 0xef0000
push 0x4396a4
push 0x439870
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov eax, dword [0x487cd4]
test eax, eax
mov dword [0x4878c0], esi
je 0x46c872
mov edx, dword [0x487cd0]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46c872
mov eax, dword [0x487cd0]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x4878bc]
push 0x14
push 0x10
push 0x10
push 0x10
push 0x10
push 0x11
push 0x4391c0
push 0x76
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
push 0
push 0x10
push 0x2000
push 0x50000900
push esi
call dword [sym.imp.COMCTL32.dll_CreateToolbarEx]
lea edx, [esp + 0x24]
mov edi, eax
push edx
push edi
mov dword [0x4878c4], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
push 0x46bd10
sub eax, ebp
push 0xfffffffffffffffc
add eax, 2
push edi
mov dword [0x487788], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x4878bc]
push 0x451
push ecx
mov dword [0x487cf8], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push esi
mov dword [esp + 0x18], eax
call edi
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x487798]
test eax, eax
je 0x46c94b
mov edx, dword [0x48779c]
mov ebx, dword [0x4877ac]
mov ecx, dword [0x4877a4]
mov eax, dword [0x4877a0]
push 0x40
push ebx
mov dword [esp + 0x3c], edx
mov edx, dword [0x4877a8]
push edx
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebx
push eax
jmp 0x46c98a
mov eax, dword [0x487794]
test eax, eax
je 0x46c99b
push 0x4877b8
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push 0x4393dc
push 0x40d154
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStructA]
test eax, eax
je 0x46c99b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push 0x40
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x34]
push eax
push esi
call edi
push esi
mov ecx, 0x487780
call fcn.0046afb0
mov eax, dword [0x487ce8]
test eax, eax
je 0x46c9c2
push 0
push 0x9c44
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4877b0]
test eax, eax
mov dword [0x4877b4], 1
je 0x46c9fa
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x18], 8
mov dword [esp + 0x24], esi
call eax
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
call ebx
test eax, eax
je 0x46ca54
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
call edi
test eax, eax
jne 0x46ca43
lea eax, [esp + 0x48]
push eax
call ebp
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
call ebx
test eax, eax
jne 0x46ca20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 4