Function at 0x495e10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532728
mov eax, dword fs:[0]
push eax
sub esp, 0x130
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 ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
mov eax, dword [esi - 0x54]
push 0x422
push eax
mov dword [ebp - 0xe0], 0x2d5
call ebx
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x3188], 0
je 0x4965e1
mov ecx, dword [esi - 0x54]
push 0x3f5
push ecx
call ebx
mov edx, dword [esi - 0x54]
push 0x3ed
push edx
mov dword [ebp - 0xd4], eax
call ebx
mov eax, dword [esi - 0x54]
push 0x3ee
push eax
call ebx
lea edi, [esi + 0x316c]
mov dword [ebp - 0xec], edi
mov ecx, edi
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], vtable.CLockMgr_class_CCSWrapper_.0
mov dword [ebp - 0x104], edi
mov dword [ebp - 0xe8], 1
call fcn.004a7ed0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi + 0x3170], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - 0xf0], vtable.CLockMgr_class_CCSWrapper_.0
call fcn.004a7dc0
mov ecx, dword [ebp - 0xd4]
push 0x53d168
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x220]
mov ecx, dword [eax + 0x248]
mov eax, dword [eax + 0x244]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], eax
cmp eax, ecx
je 0x4965e1
jmp 0x495f39
mov eax, dword [ebp - 0xe4]
mov edi, dword [eax]
push 0
mov ecx, esi
call fcn.004a6bc0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x496457
mov edx, dword [edi]
mov ecx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x21c]
call fcn.004a0150
mov ebx, eax
mov dword [ebp - 0xd8], ebx
test ebx, ebx
jne 0x49604b
mov edx, dword [edi]
mov ecx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x21c]
call fcn.004a0980
mov edx, dword [edi]
mov ecx, dword [edi + 4]
sub esp, 0x10
mov ebx, eax
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x21c]
call fcn.004a08c0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx]
sub eax, 0x10
lea edx, [ebp - 0xdc]
push eax
mov dword [ebp - 0xfc], edx
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0xdc]
lea ecx, [esi + 0x238]
push eax
call fcn.004022d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xdc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0xd8]
mov eax, dword [ebx]
test eax, eax
je 0x496436
cmp eax, 1
jne 0x496183
lea ecx, [ebp - 0x58]
push ecx
mov ecx, ebx
call fcn.00426570
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x496078
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00411460
mov byte [ebp - 4], 5
lea edx, [ebp - 0xf8]
push edx
lea ecx, [ebp - 0x13c]
call fcn.0042f5b0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xf8]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4960c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x44], 8
jb 0x4960d8
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004efd7c
add esp, 4
xor eax, eax
xor edx, edx
push eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], dx
mov dword [ebp - 0x114], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00494d20
cmp eax, 1
jne 0x496170
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x100]
call fcn.004219c0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x317c]
push ecx
mov ecx, dword [ebp - 0x100]
lea eax, [esi + 0x3178]
push eax
push ecx
call fcn.004b4070
add esp, 0xc
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x100]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x13c]
call fcn.0042f660
jmp 0x496198
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x13c]
call fcn.0042f660
jmp 0x496436
lea ecx, [ebx + 0x5f]
mov dword [esi + 0x3178], ecx
mov eax, dword [ebx + 0xc4]
mov dword [esi + 0x317c], eax
mov edx, dword [ebx + 0xd8]
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
mov dword [ebp - 0xfc], edx
call fcn.004265f0
mov dword [ebp - 4], 0xc
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x4961c4
mov edx, dword [eax]
jmp 0x4961c6
mov edx, eax
test edx, edx
jne 0x4961ce
xor eax, eax
jmp 0x4961e7
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4961d3
sub eax, edi
sar eax, 1
mov edi, 8
push eax
push edx
lea ecx, [esi + 0x3174]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x60], edi
jb 0x49620c
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.004efd7c
add esp, 4
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x3c]
xor edx, edx
push eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], dx
call fcn.00426570
mov dword [ebp - 4], 0xd
cmp dword [eax + 0x14], edi
jb 0x49623f
mov ecx, dword [eax]
jmp 0x496241
mov ecx, eax
test ecx, ecx
jne 0x496249
xor eax, eax
jmp 0x496264
mov eax, ecx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x496250
sub eax, edi
sar eax, 1
mov edi, 8
push eax
push ecx
lea ecx, [esi + 0x3180]
call fcn.00401e30
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], edi
jb 0x496289
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004efd7c
add esp, 4
lea eax, [esi + 0x238]
xor edx, edx
lea ecx, [esi + 0x3184]
push eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
call fcn.004022d0
mov eax, dword [esi + 0x3174]
push eax
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [ebp - 0x104]
mov dword [ebp - 0x10c], edi
mov ecx, edi
mov dword [ebp - method.CLockMgr_class_CCSWrapper_.virtual_0], vtable.CLockMgr_class_CCSWrapper_.0
mov dword [ebp - 0x108], 1
call fcn.004a7ed0
mov dword [ebp - 4], 0xe
mov dword [esi + 0x3170], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - method.CLockMgr_class_CCSWrapper_.virtual_0], vtable.CLockMgr_class_CCSWrapper_.0
call fcn.004a7dc0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x3174]
cmp dword [eax - 4], 1
jle 0x496338
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x3174]
call fcn.00401820
mov ebx, dword [esi + 0x3174]
push 5
lea edi, [esi + 0x224]
push ebx
mov ecx, edi
call fcn.004b9d50
test eax, eax
je 0x496367
push 0
push eax
push 0x9e
lea ecx, [esi - 0x58]
call fcn.004958a0
jmp 0x496436
mov eax, dword [esi + 0x317c]
mov ecx, dword [esi + 0x3178]
push eax
push ecx
mov ecx, edi
call fcn.004b9950
test eax, eax
je 0x496395
push 0
push eax
push 0x9d
lea ecx, [esi - 0x58]
call fcn.004958a0
jmp 0x496436
mov ecx, dword [esi + 0x3178]
mov eax, dword [esi + 0x317c]
mov dword [edi + 0x2c], ecx
push 0x2e2
lea ecx, [esi - 0x58]
mov dword [edi + 0x30], eax
call fcn.00495b00
push 0x2d4
lea ecx, [esi - 0x58]
call fcn.004951d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xfc]
push edx
push edi
lea ecx, [esi - 0x58]
call fcn.00494850
mov dword [ebp - 0xe0], eax
cmp eax, 0x2d5
je 0x4965fd
cmp eax, 0x2d3
jne 0x49641e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0xc], edx
call fcn.00494470
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [esi - 0x58]
call fcn.004951d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004b8cc0
mov eax, dword [ebp - 0xe4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add eax, 4
mov dword [ebp - 0xe4], eax
cmp eax, dword [ebp - 0xe8]
jne 0x495f33
cmp dword [ebp - 0xe0], 0x2d5
je 0x4965e1
mov eax, dword [ebp - 0xf4]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x53d168
push eax
call edi
mov ecx, dword [ebp - 0xd4]
push 0x53d168
push ecx
call edi
mov edx, dword [esi - 0x54]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 3
push 0
push 0x470
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi - 0x54]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi - 0x54]
push 0x3f0
push edx
call ebx
xor edi, edi
mov esi, eax
mov dword [ebp - 0xe8], edi
mov dword [ebp - 4], 0xf
push edi
push edi
push 0x31
push esi
mov dword [ebp - 0xec], vtable.CWindowFont.0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
je 0x496535
push 0x5c
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.004f0550
add esp, 0xc
lea ecx, [ebp - 0xd0]
push ecx
push 0x5c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x496535
lea edx, [ebp - 0xd0]
push edx
mov dword [ebp - 0xc0], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov dword [ebp - 0xe8], edi
mov dword [ebp - 4], 0x10
push 1
push edi
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov ecx, 0x58c214
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0xd4], ebx
mov byte [ebp - 4], 0x12
push 0
push 0x2c6
call fcn.00401480
add esp, 8
test eax, eax
je 0x49658e
push 0x2c6
push eax
lea ecx, [ebp - 0xd4]
call fcn.00406170
mov ebx, dword [ebp - 0xd4]
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 0x10
lea eax, [ebx - 0x10]
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4965b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xec], vtable.CWindowFont.0
mov dword [ebp - 4], esi
test edi, edi
je 0x4965e1
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4965e1
mov dword [ebp - 0xe8], 0
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
lea ecx, [esi + 0x224]
call fcn.004b8cc0
jmp 0x4965e1