Function at 0x4686b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x619c08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6a8c7c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
cmp eax, vtable.CMarchMainWnd.2.0
jne 0x4689b1
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468702
push 0
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.00468b10
mov eax, dword [0x6b4010]
test eax, eax
je 0x468734
push 1
push eax
call fcn.004e5270
push 0
push dword [0x6b4010]
mov dword [0x6b4014], 1
call fcn.004e5270
add esp, 0x10
mov eax, dword [edi + 0x278]
mov dword [0x6b4010], 0
test eax, eax
je 0x46874f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x7b
push dword [edi + 0x10]
call esi
push 0xea
push dword [edi + 0x10]
call esi
mov ecx, dword [edi + 0x27c]
or esi, 0xffffffff
test ecx, ecx
je 0x4687b5
call fcn.0045d2b0
mov dword [edi + 0x27c], 0
mov ebx, dword [edi + 0x280]
mov dword [edi + 0x280], 0
test ebx, ebx
je 0x4687b5
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x4687b5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x4687b5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [edi + 0x4fc]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4688bd
mov ecx, ebx
call fcn.004737f0
mov ecx, ebx
call fcn.00473630
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebx + 0x360]
call fcn.00474510
mov ebx, dword [eax]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x46880e
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x46880e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x46880e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
je 0x4688bd
push 0
push 0x685050
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.0044e6f0
mov ecx, dword [ebp - 0x18]
sub esp, 8
mov edx, esp
mov dword [ebp - 4], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ecx + 0x364]
test eax, eax
je 0x468863
lock inc dword [eax + 8]
mov eax, dword [ecx + 0x360]
mov dword [edx], eax
mov eax, dword [ecx + 0x364]
mov dword [edx + 4], eax
lea eax, [ebp - 0x30]
push eax
push 0x3e9
call fcn.0047a5b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4688bd
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4688b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4689bc
push edx
push ecx
call fcn.005d588d
add esp, 8
mov ecx, dword [edi + 0x30c]
test ecx, ecx
je 0x46890f
cmp dword [ecx + 4], 0
je 0x4688d2
call fcn.0045d2b0
mov dword [edi + 0x30c], 0
mov ebx, dword [edi + 0x310]
mov dword [edi + 0x310], 0
test ebx, ebx
je 0x46890f
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x46890f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, esi
lock xadd dword [ebx + 8], eax
jne 0x46890f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [edi + 0x270]
test ecx, ecx
je 0x468960
cmp dword [ecx + 4], 0
je 0x468924
call fcn.0045d2b0
mov dword [edi + 0x270], 0
mov ebx, dword [edi + 0x274]
mov dword [edi + 0x274], 0
test ebx, ebx
je 0x468960
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x468960
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x468960
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [edi + 0x278]
test eax, eax
je 0x46897b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x278], 0
mov ecx, dword [edi + 0x4fc]
test ecx, ecx
je 0x468995
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x4fc], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 0
call edx
jmp 0x468702
call fcn.005f564e
int3