Function at 0x41f6d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a12c6
mov eax, dword fs:[0]
push eax
mov eax, 0x43a0
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x43a8], eax
mov dword [ecx], 1
test eax, eax
je 0x41fbeb
lea edi, [ebx + 0x23c0]
call fcn.0043d230
mov esi, dword [eax]
mov dword [ebp - 0x43ac], esi
test esi, esi
jne 0x41f73e
mov eax, dword [ebp - 0x43a8]
push eax
jmp 0x41fbe2
mov ecx, dword [ebp - 0x43a8]
mov eax, dword [ecx + 0x10]
cmp eax, 0x419
jg case.0x41f769.10
je 0x41fbc7
dec eax
cmp eax, 0x1c
ja case.0x41f769.10
movzx edx, byte [eax + 0x41fc44]
jmp dword [edx*4 + 0x41fc10]
mov byte [ebx + 0x2379], 0
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0x10], 9
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
mov dword [esi + 0x389c], eax
call fcn.0041e080
mov eax, dword [ebp - 0x43a8]
cmp dword [eax + 0x389c], 1
jle 0x41f849
cmp dword [esi + 4], 0
lea eax, [esi + 4]
je 0x41f849
mov ecx, dword [esi]
mov dword [ebx + 0x2364], ecx
call fcn.0043d230
mov edi, dword [eax]
test edi, edi
je 0x41f849
lea esi, [ebp - 0x43a4]
call fcn.00415680
push 0x4380
mov edx, esi
push edi
push edx
call sub.MSVCR100.dll_memcpy
mov esi, dword [ebp - 0x43a8]
mov eax, dword [esi + 0x389c]
add esp, 0xc
push eax
mov dword [ebp - 0xb08], eax
lea eax, [esi + 0x1014]
push eax
lea ecx, [ebp - 0x3390]
push ecx
mov dword [ebp - 0x4394], 0xa
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x43a4]
add esi, 0x3afe
mov ecx, 0x20
lea edi, [ebp - 0x8a6]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041e080
mov esi, dword [ebp - 0x43ac]
mov eax, dword [ebx + 0x26a8]
test eax, eax
je 0x41f857
cmp eax, dword [esi]
je 0x41f8b1
lea eax, [esi + 0x3014]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp byte [ebx + 0x2694], 0
jne 0x41f87c
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
call fcn.0041e0d0
mov edx, dword [ebx + 0x2360]
push 0
push edx
mov ecx, ebx
call fcn.0041f200
mov eax, dword [esi + 8]
mov dword [ebx + 0x235c], eax
mov eax, dword [esi]
push 1
push eax
mov ecx, ebx
mov dword [ebx + 0x2360], eax
call fcn.0041f200
mov dword [ebx + 0x26a8], 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x18]
movzx eax, word [ebp - 0x1a]
movzx ecx, word [ebp - 0x1c]
push edx
movzx edx, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x24]
push edx
push eax
push ecx
push str._4d_.2d_.2d_.2d_.2d_.2d
push 0x14
add esi, 0x3aa4
push esi
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x24
jmp case.0x41f769.10
lea eax, [ebx + 0x2364]
call fcn.0043d230
mov eax, dword [eax]
test eax, eax
je case.0x41f769.10
push eax
mov dword [eax + 0x10], 0xb
call fcn.0041e080
jmp case.0x41f769.10
lea eax, [ebx + 0x2364]
call fcn.0043d230
mov edi, dword [eax]
test edi, edi
je case.0x41f769.10
mov edx, dword [ebx + 0x2364]
cmp edx, dword [ebx + 0x2360]
jne case.0x41f769.10
lea eax, [edi + 0x3014]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp byte [ebx + 0x2694], 0
jne case.0x41f769.10
mov ecx, dword [edi + 8]
push 1
push eax
push ecx
call fcn.0041e0d0
jmp case.0x41f769.10
lea ecx, [ebx + 0x14]
call dword [sym.imp.HFUILib.dll_public:_bool___thiscall_CPaintManagerUI::IsEmpty_void_]
test al, al
jne case.0x41f769.10
push ebx
mov ebx, esi
call fcn.0042b690
mov eax, esi
mov ecx, edi
call fcn.0043d2c0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp case.0x41f769.10
cmp dword [ebx + 0x235c], 0
je case.0x41f769.10
cmp dword [ebx + 0x2658], 0
je case.0x41f769.10
mov eax, dword [ebx + 0x2638]
mov dword [ebx + 0x2658], 0
test eax, eax
je 0x41f9dc
mov edx, dword [eax + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x235c]
push 0x53
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebx + 0x2360]
call fcn.0043d230
mov eax, dword [eax]
test eax, eax
je case.0x41f769.10
add eax, 0x3014
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp byte [ebx + 0x2694], 0
jne case.0x41f769.10
mov ecx, dword [ebx + 0x235c]
push 1
push eax
push ecx
call fcn.0041e0d0
jmp case.0x41f769.10
cmp dword [ebx + 0x235c], 0
je case.0x41f769.10
lea eax, [ebx + 0x2364]
call fcn.0043d230
mov esi, dword [eax]
test esi, esi
je case.0x41f769.10
lea edx, [esi + 0x3014]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
cmp byte [ebx + 0x2694], 0
jne case.0x41f769.10
push 1
push eax
mov eax, dword [esi + 8]
push eax
call fcn.0041e0d0
jmp case.0x41f769.10
lea eax, [ecx + 0x1014]
test eax, eax
jne 0x41fadc
xor esi, esi
mov dword [ebp - 0x43ac], esi
mov ecx, dword [ebp - 0x43a8]
mov dword [ebp - 4], 0
mov edi, dword [ecx]
push edi
push 1
push esi
mov ecx, ebx
call fcn.00423b90
test eax, eax
jne 0x41fad0
mov ecx, dword [ebp - 0x43a8]
push eax
push edi
add ecx, 0x814
push ebx
mov edx, esi
call fcn.00420810
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp case.0x41f769.10
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x43ac], esi
test esi, esi
jne 0x41fa9c
push 0x8007000e
call fcn.00401050
lea eax, [ecx + 0x1014]
test eax, eax
jne 0x41fb3c
xor esi, esi
mov dword [ebp - 0x43ac], esi
push 9
push str.hfgame:__
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x41fb30
mov edx, esi
mov ecx, ebx
call fcn.00422fb0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp case.0x41f769.10
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x43ac], esi
test esi, esi
jne 0x41fb0b
push 0x8007000e
call fcn.00401050
cmp byte [esi + 0x3afc], 0
je case.0x41f769.10
add ecx, 0x14
push ecx
lea edx, [esi + 0x14]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
push ebx
mov ecx, esi
call fcn.0042b5b0
jmp case.0x41f769.10
push ebx
mov ebx, ecx
call fcn.00436d10
jmp case.0x41f769.10
cmp dword [ebx + 0x235c], 0
je case.0x41f769.10
xor eax, eax
cmp dword [ebx + 0x2658], eax
mov ecx, ebx
sete al
push eax
call fcn.00429a30
jmp case.0x41f769.10
cmp dword [ebx + 0x2658], 0
je case.0x41f769.10
cmp dword [ebx + 0x235c], 0
je case.0x41f769.10
push 0
mov ecx, ebx
call fcn.00429a30
jmp case.0x41f769.10
push 0
push 0xf020
push 0x112
mov ecx, ebx
call dword [sym.imp.HFUILib.dll_protected:_long_int___thiscall_CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
mov ecx, dword [ebp - 0x43a8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret 4