Function at 0x41a2d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5161be
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x56f790]
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 - 0x29c], 0x52dfa4
movups xmmword [ebp - 0x298], xmm0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov edi, dword [0x5735e4]
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 [0x573638]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.004bba8a
add esp, 0xc
test eax, eax
je 0x41a39f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004bba8a
add esp, 0xc
test eax, eax
je 0x41a39f
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x41a390
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x41a39c
lea ecx, [ebp - 0x29c]
mov dword [eax], ecx
inc dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
lea ecx, [ebp - 0xb8]
call fcn.0041d610
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.0041e8b0
mov byte [ebp - 4], 2
call fcn.0040ed70
mov ecx, eax
call fcn.0040cef0
test eax, eax
je 0x41a466
mov eax, dword [ebp - 0xa4]
test eax, eax
jne 0x41a400
call fcn.0048af92
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x41a400
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41a50f
push 0
push 0
push eax
call fcn.0048b094
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x56e004
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x56e01c]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xb0]
push 0x56e004
mov dword [0x56e01c], eax
call esi
push 0
push 0x41b460
push 0
push 0x67
push dword [0x573e6c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
jmp 0x41a50f
push dword [ebp - 0x264]
lea eax, [ebp - 0x240]
push eax
push 0x56f1a8
push section..data
push 0x573e64
call fcn.00403e20
add esp, 0x14
movzx eax, ax
lea ecx, [ebp - 0x260]
push 0
push eax
push 0
push 0
push SysReAllocString
push 0
push 0
push 0
call fcn.00404420
test eax, eax
jne 0x41a4b5
xor esi, esi
jmp 0x41a6af
call fcn.0040ed70
mov ecx, eax
call fcn.0040cee0
cmp dword [eax], 0
jne 0x41a50f
push dword [ebp + 0xc]
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x25c]
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 - 0x25c]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x25c]
call esi
call fcn.0040ed70
mov ecx, eax
call fcn.0040cee0
mov edx, str.Create_Main_Wnd_and_show
mov ecx, str.Silent_mode
cmp dword [eax], 0
cmove ecx, edx
push ecx
call fcn.00441ac0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
add esp, 4
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x41a571
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x280]
push eax
call edi
test eax, eax
jne 0x41a571
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x29c]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x41a545
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x41a541
test eax, eax
je 0x41a607
lea eax, [ebp - 0x280]
push eax
mov eax, dword [ebp - 0x29c]
lea ecx, [ebp - 0x29c]
call dword [eax]
test eax, eax
jne 0x41a5c0
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x27c]
cmp eax, 0x118
ja 0x41a5db
je 0x41a5f7
cmp eax, 0xf
je 0x41a5f7
cmp eax, 0xa0
jmp 0x41a5e0
cmp eax, 0x200
je 0x41a5f7
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x41a541
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x41a541
mov esi, dword [ebp - 0x278]
mov ecx, 0x573604
call fcn.0041a1a0
mov ecx, 0x573640
call fcn.0042d150
mov ecx, dword [0x5735dc]
test ecx, ecx
jne 0x41a6a5
mov eax, dword [vtable.CDHCriticalSection.0]
mov ecx, 0x56f160
mov dword [ebp - vtable.CDHCriticalSection.0], 0x56f160
call dword [eax + 4]
cmp dword [0x5735dc], 0
mov byte [ebp - 4], 3
jne 0x41a68a
cmp dword [0x56f15c], 0
je 0x41a68a
push 0x48
call fcn.00428200
add esp, 4
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41a679
mov ecx, eax
call fcn.0046e610
jmp 0x41a67b
xor eax, eax
mov dword [0x5735dc], eax
mov dword [0x56f15c], 0
mov eax, dword [vtable.CDHCriticalSection.0]
mov ecx, 0x56f160
mov byte [ebp - 4], 5
call dword [eax + 8]
mov ecx, dword [0x5735dc]
mov byte [ebp - 4], 2
push 0x1388
call fcn.004713f0
lea ecx, [ebp - 0x260]
call fcn.0041ea70
lea ecx, [ebp - 0xb8]
call fcn.0041d700
mov eax, dword [ebp - 0x28c]
test eax, eax
je 0x41a6e2
push eax
call fcn.004bba85
add esp, 4
mov dword [ebp - 0x28c], 0
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
test eax, eax
je 0x41a709
push eax
call fcn.004bba85
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.004ac4b8
mov esp, ebp
pop ebp
ret