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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
push ebx
push esi
push edi
jne 0x404492
xor al, al
jmp 0x404715
push str.COMCTL32.DLL
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x4044c6
lea ecx, [esp + 0x2c]
push ecx
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push esi
push 0x6c
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40448b
xor eax, eax
mov dword [esp + 0x78], esi
lea edi, [esp + 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x78]
push eax
push 0x18
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x404709
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0x404152
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call ebx
push 0x65
push esi
mov dword [esp + 0x68], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x50]
mov edi, str.988705F9_8150_44b1_9C31_9BBE9C58DC53
push eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x404709
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 8
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x33
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x28], eax
mov eax, 0x4460e4
lea ecx, [esp + 0x90]
call fcn.004015ff
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x4045cc
lea eax, [esp + 0x94]
push esi
push esi
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push esi
push esi
add eax, ecx
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
lea eax, [eax + ecx*2]
push eax
push esi
push esi
push 0x80c80080
push dword [esp + 0x34]
push edi
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x40461b
push esi
call ebx
push eax
push edi
jmp 0x4046f4
push eax
call fcn.0040472c
push 5
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SetPropW]
push str.width
push dword [esp + 0x18]
call edi
push dword [esp + 0x20]
push str.height
push dword [esp + 0x18]
call edi
push dword [esp + 0x14]
push str.bitmap
push dword [esp + 0x18]
call edi
push esi
push str.ok_hot
push dword [esp + 0x18]
call edi
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push esi
push 0xa
push esi
push dword [esp + 0x1c]
call edi
push esi
push 0x2710
push 0x46f
push esi
call edi
push 6
mov dword [esp + 0x1c], eax
pop ecx
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x4046dd
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4046eb
cmp dword [esp + 0x38], 0x113
jne 0x4046dd
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], eax
je 0x4046eb
push esi
push esi
push esi
lea eax, [esp + 0x40]
push eax
call edi
test eax, eax
jne 0x4046a5
push esi
call ebx
push eax
push str.988705F9_8150_44b1_9C31_9BBE9C58DC53
call dword [sym.imp.USER32.dll_UnregisterClassW]
push esi
push 1
lea esi, [esp + 0x98]
call fcn.004016ab
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, 1
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042b9ba
mov esp, ebp
pop ebp
ret 4