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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x4551a0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
push ebx
push esi
push edi
jne 0x404215
xor al, al
jmp 0x404497
push str.COMCTL32.DLL
mov dword [0x456538], eax
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 0x40424e
lea ecx, [esp + 0x2c]
push ecx
call eax
cmp dword [0x456538], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
push esi
push esi
jne 0x404265
push 0x67
jmp 0x404267
push 0x66
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40420e
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 0x40448b
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x403dd0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call ebx
push 0x65
push esi
mov dword [esp + 0x4c], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x34]
mov edi, str.6DFCF9A3_097B_4f01_BC8C_1611038C9E98
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40448b
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 8
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x33
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x24], eax
mov eax, 0x44b0f4
lea ecx, [esp + 0x90]
call fcn.004015ff
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x404361
lea eax, [esp + 0x94]
push esi
push esi
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push esi
push esi
add eax, ecx
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
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 0x4043b0
push esi
call ebx
push eax
push edi
jmp 0x404476
push eax
call fcn.004044ae
push 5
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SetPropW]
push str.width
push dword [esp + 0x18]
call edi
push dword [esp + 0x1c]
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
cmp dword [0x456538], 1
jne 0x404416
push esi
push str.check_hot
push dword [esp + 0x18]
call edi
push esi
push 0xa
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetTimer]
push 6
pop ecx
xor eax, eax
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40445f
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40446d
push esi
push esi
push esi
lea eax, [esp + 0x68]
push eax
call edi
test eax, eax
jne 0x40443b
push esi
call ebx
push eax
push str.6DFCF9A3_097B_4f01_BC8C_1611038C9E98
call dword [sym.imp.USER32.dll_UnregisterClassW]
push esi
push 1
lea esi, [esp + 0x98]
call fcn.0040169d
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.0042fe0e
mov esp, ebp
pop ebp
ret 4