Function at 0x42d110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5746
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x67f4f4]
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 eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1d4], 0x610820
movups xmmword [ebp - 0x1d0], xmm0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov edi, dword [0x689744]
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 [0x6897b0]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.00572def
add esp, 0xc
test eax, eax
je 0x42d1e8
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.00572def
add esp, 0xc
test eax, eax
je 0x42d1e8
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x42d1d9
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x42d1e5
lea ecx, [ebp - 0x1d4]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
lea ecx, [ebp - 0x198]
call fcn.004305c0
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 1
call fcn.00434e50
call fcn.0042a640
cmp dword [eax + 0x30], 0
jne 0x42d228
call fcn.0042a640
mov dword [eax + 0x30], 0
call fcn.0042a640
push dword [ebp - 0x19c]
lea ecx, [ebp - 0x178]
push ecx
push eax
push 0x67dfe8
push 0x68b31c
call fcn.004234e0
movzx esi, ax
add esp, 0x14
mov eax, dword [ebp - 0x184]
test eax, eax
jne 0x42d2e4
call fcn.00461d7d
mov dword [ebp - 0x184], eax
test eax, eax
jne 0x42d2e4
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ecx, [ebp - 0x198]
call fcn.004308d0
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x42d29f
push eax
call fcn.005703bc
add esp, 4
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
test eax, eax
je 0x42d2c6
push eax
call fcn.005703bc
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.00478a88
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.00461e7f
test si, si
je 0x42d275
lea eax, [ebp - 0x198]
mov dword [ebp - 0x190], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x67dfec
mov dword [ebp - 0x18c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x67e004]
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x190]
push 0x67dfec
mov dword [0x67e004], eax
call edi
mov ecx, dword [0x67e018]
mov eax, dword [0x67e020]
mov edx, dword [0x67e014]
sub eax, ecx
push 0
push dword [0x68b320]
push 0
push 0
push eax
mov eax, dword [0x67e01c]
sub eax, edx
push eax
push ecx
push edx
push SysReAllocString
push 0
push esi
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x42d275
call fcn.004214e0
mov ecx, eax
call fcn.0041e990
test eax, eax
jne 0x42d3d1
push dword [ebp + 0x10]
push dword [ebp - 0x194]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x194]
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 - 0x194]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x194]
call esi
call fcn.004214e0
mov ecx, eax
call fcn.0041e990
test eax, eax
mov edx, str.Create_Main_Wnd_and_show
mov ecx, 0x61085c
cmove ecx, edx
push ecx
call fcn.004302a0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
add esp, 4
mov ebx, 1
xor esi, esi
test ebx, ebx
je 0x42d432
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1b8]
push eax
call edi
test eax, eax
jne 0x42d432
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d4]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x42d406
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x42d402
test eax, eax
je 0x42d4c8
lea eax, [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d4]
call dword [eax]
test eax, eax
jne 0x42d481
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1b8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x1b4]
cmp eax, 0x118
ja 0x42d49c
je 0x42d4b8
cmp eax, 0xf
je 0x42d4b8
cmp eax, 0xa0
jmp 0x42d4a1
cmp eax, 0x200
je 0x42d4b8
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x42d402
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x42d402
mov esi, dword [ebp - 0x1b0]
mov ecx, 0x68977c
call fcn.0042cfe0
lea ecx, [ebp - 0x198]
call fcn.00435750
jmp 0x42d277