Function at 0x1001d940
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101547c3
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x101c0618]
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
xorps xmm0, xmm0
mov dword [ebp - 0x1f4], 0x10174ec4
movups xmmword [ebp - 0x1f0], xmm0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov edi, dword [0x101c5f10]
add edi, 0x10
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x101c5f64]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.100f685a
add esp, 0xc
test eax, eax
je 0x1001da0f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.100f685a
add esp, 0xc
test eax, eax
je 0x1001da0f
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x1001da00
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x1001da0c
lea ecx, [ebp - 0x1f4]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1b8]
call fcn.10021d90
mov byte [ebp - 4], 1
call fcn.1001b670
cmp dword [eax + 0x30], 0
jne 0x1001da3c
call fcn.1001b670
mov dword [eax + 0x30], 0
call fcn.1001b670
push dword [ebp - 0x1bc]
lea ecx, [ebp - 0x198]
push ecx
push eax
push section..data
push 0x101c7210
call fcn.10006c90
add esp, 0x14
movzx eax, ax
lea ecx, [ebp - 0x1b8]
push 0
push eax
push 0
push 0
push SysReAllocString
push 0
push 0
push 0
call fcn.10007290
test eax, eax
jne 0x1001da8c
xor esi, esi
jmp 0x1001dc80
call fcn.100125c0
mov ecx, eax
call fcn.100100f0
cmp dword [eax], 0
jne 0x1001dae6
push dword [ebp + 0xc]
push dword [ebp - 0x1b4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x1b4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x1b4]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x1b4]
call esi
call fcn.100125c0
mov ecx, eax
call fcn.100100f0
mov edx, str.Create_Main_Wnd_and_show
mov ecx, str.Silent_mode
cmp dword [eax], 0
cmove ecx, edx
push ecx
call fcn.1004a190
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
add esp, 4
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x1001db4c
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1d8]
push eax
call edi
test eax, eax
jne 0x1001db4c
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x1001db20
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x1001db18
test eax, eax
je 0x1001dbe2
lea eax, [ebp - 0x1d8]
push eax
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
call dword [eax]
test eax, eax
jne 0x1001db9b
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x1d4]
cmp eax, 0x118
ja 0x1001dbb6
je 0x1001dbd2
cmp eax, 0xf
je 0x1001dbd2
cmp eax, 0xa0
jmp 0x1001dbbb
cmp eax, 0x200
je 0x1001dbd2
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1001db18
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1001db18
mov esi, dword [ebp - 0x1d0]
mov ecx, 0x101c5f30
call fcn.1001d810
mov ecx, dword [0x101c5f08]
test ecx, ecx
jne 0x1001dc76
mov eax, dword [vtable.CDHCriticalSection.0]
mov ecx, 0x101bff38
mov dword [ebp - vtable.CDHCriticalSection.0], 0x101bff38
call dword [eax + 4]
cmp dword [0x101c5f08], 0
mov byte [ebp - 4], 2
jne 0x1001dc5b
cmp dword [0x101bff34], 0
je 0x1001dc5b
push 0x4c
call fcn.1002c7e0
add esp, 4
mov dword [ebp - 0x1f8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1001dc4a
mov ecx, eax
call fcn.1006e860
jmp 0x1001dc4c
xor eax, eax
mov dword [0x101c5f08], eax
mov dword [0x101bff34], 0
mov eax, dword [vtable.CDHCriticalSection.0]
mov ecx, 0x101bff38
mov byte [ebp - 4], 4
call dword [eax + 8]
mov ecx, dword [0x101c5f08]
mov byte [ebp - 4], 1
push 0x1388
call fcn.10071830
lea ecx, [ebp - 0x1b8]
call fcn.10021f40
mov eax, dword [ebp - 0x1e4]
test eax, eax
je 0x1001dca8
push eax
call fcn.100f6855
add esp, 4
mov dword [ebp - 0x1e4], 0
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
test eax, eax
je 0x1001dccf
push eax
call fcn.100f6855
add esp, 4
mov eax, esi
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.100b4568
mov esp, ebp
pop ebp
ret