Function at 0x410700
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45db73
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x47d220]
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
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00438a20
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x46348c
add esp, 0xc
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
mov edi, dword [0x47ec20]
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 [0x47f0e8]
xor edx, edx
push 4
mov ebx, eax
mov ecx, dword [esi + 8]
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
push dword [esi]
call fcn.0043bec5
add esp, 0xc
test eax, eax
je 0x4107e6
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [esi + 8]
add eax, 1
push 4
setb cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 4]
call fcn.0043bec5
add esp, 0xc
test eax, eax
je 0x4107e6
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x4107da
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x4107e3
lea ecx, [ebp - 0x48]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
push 0x48
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00438a20
add esp, 0xc
lea ecx, [ebp - 0x90]
call fcn.0040a160
mov byte [ebp - 4], 1
call fcn.0040bb50
cmp dword [eax + 0x30], 0
jne 0x410828
call fcn.0040bb50
mov dword [eax + 0x30], 0
call fcn.0040bb50
push dword [ebp - 0x94]
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0x47c028
push 0x47f10c
call fcn.0040dcd0
movzx esi, ax
add esp, 0x14
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x4108c8
call fcn.00412343
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4108c8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ecx, [ebp - 0x90]
call fcn.0040a210
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41088c
push eax
call fcn.0043bec0
add esp, 4
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test eax, eax
je 0x4108aa
push eax
call fcn.0043bec0
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.00431482
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.00412445
test si, si
je 0x410868
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x47c02c
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x47c044]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push 0x47c02c
mov dword [0x47c044], eax
call edi
mov ecx, dword [0x47c0f4]
mov eax, dword [0x47c0fc]
mov edx, dword [0x47c0f0]
sub eax, ecx
push 0
push dword [0x47f110]
push 0
push 0
push eax
mov eax, dword [0x47c0f8]
sub eax, edx
push eax
push ecx
push edx
push 0x86020000
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x410868
push 0
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x410998
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x410998
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x410975
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x410971
test eax, eax
je 0x410a19
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
call dword [eax]
test eax, eax
jne 0x4109d5
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x28]
cmp eax, 0x118
ja 0x4109ed
je 0x410a09
cmp eax, 0xf
je 0x410a09
cmp eax, 0xa0
jmp 0x4109f2
cmp eax, 0x200
je 0x410a09
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x410971
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x410971
mov esi, dword [ebp - 0x24]
mov ecx, 0x47f0b4
call fcn.004105d0
jmp 0x41086a