Function at 0x494d80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5322b9
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x58c214
mov dword [ebp - 0x74], esi
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x9c], vtable.CWindowFont.0
mov byte [ebp - 4], 3
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push edi
call esi
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x494e68
push 0x5c
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004f0550
mov edx, dword [ebp - 0xa0]
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x494e68
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x5c], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
test eax, eax
mov dword [ebp - 0x98], eax
setne al
test al, al
je 0x494e68
push 0x3f6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x98]
push 1
push ecx
push 0x30
push eax
call esi
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x640000
push 0
mov edi, eax
push 0x401
push edi
call esi
push 0
push 1
push 0x404
push edi
call esi
push 0
push 0
push 0x402
push edi
call esi
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 4]
push 0x41e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x2d8
mov edi, eax
mov dword [ebp - 0xbc], 1
call fcn.00401480
add esp, 8
test eax, eax
je 0x494ee5
push 0x2d8
push eax
lea ecx, [ebp - 0x70]
call fcn.00406170
mov ebx, dword [ebp - 0x70]
cmp dword [ebx - 4], 1
jle 0x494efa
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401820
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0xbc]
push ecx
push 0
push 0x133e
push edi
mov dword [ebp - 0xb0], ebx
call esi
push 0
push 0x2d9
call fcn.00401480
add esp, 8
test eax, eax
je 0x494f35
push 0x2d9
push eax
lea ecx, [ebp - 0x70]
call fcn.00406170
mov ebx, dword [ebp - 0x70]
cmp dword [ebx - 4], 1
jle 0x494f4a
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [ebp - 0x70]
call fcn.00401820
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0xbc]
push eax
push 1
push 0x133e
push edi
mov dword [ebp - 0xb0], ebx
call esi
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 4]
push 0x422
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x2e5
mov edi, eax
call fcn.00401480
add esp, 8
test eax, eax
je 0x494f99
push 0x2e5
push eax
lea ecx, [ebp - 0x70]
call fcn.00406170
mov ebx, dword [ebp - 0x70]
xor eax, eax
push ebx
push eax
push 0x1057
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ebx
call esi
add eax, 0xf
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x1061
push edi
mov dword [ebp - 0x80], 0
call esi
push 0x64
push 0
push 0x101e
push edi
call esi
push 0
push 0x2da
call fcn.00401480
add esp, 8
test eax, eax
je 0x49502d
push 0x2da
push eax
lea ecx, [ebp - 0x70]
call fcn.00406170
mov ebx, dword [ebp - 0x70]
xor eax, eax
push ebx
push eax
push 0x1057
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ebx
call esi
lea ecx, [ebp - 0x94]
push ecx
push 1
push 0x1061
add eax, 0xf
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 1
call esi
push 0xc8
push 1
push 0x101e
push edi
call esi
push 0
push 0x2db
call fcn.00401480
add esp, 8
test eax, eax
je 0x4950c4
push 0x2db
push eax
lea ecx, [ebp - 0x70]
call fcn.00406170
mov ebx, dword [ebp - 0x70]
xor eax, eax
push ebx
push eax
push 0x1057
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], eax
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ebx
call esi
lea edx, [ebp - 0x94]
push edx
push 2
push 0x1061
add eax, 0xf
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], 2
call esi
push 0x64
push 2
push 0x101e
push edi
call esi
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 4]
push 0x427
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 4], 1
mov dword [ebp - 0x9c], vtable.CWindowFont.0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x495180
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x495180
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4951a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 8