Function at 0x40c490
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452c60
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x46f124]
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 - 0x7c]
push 0
push eax
call fcn.0042d750
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0x465ba4
add esp, 0xc
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
mov edi, dword [0x471ac8]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x472158]
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.00435708
add esp, 0xc
test eax, eax
je 0x40c573
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.00435708
add esp, 0xc
test eax, eax
je 0x40c573
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x40c567
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x40c570
lea ecx, [ebp - 0x7c]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
push 0x34
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0042d750
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
add esp, 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], vtable.MainWnd.0
mov dword [ebp - 0x20], 0x465aa4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
call fcn.00403380
cmp dword [eax + 0x30], 0
jne 0x40c5ee
call fcn.00403380
mov dword [eax + 0x30], 0
call fcn.00403380
push dword [ebp - 0x80]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040cdc0
movzx esi, ax
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40c695
call fcn.0040d348
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40c695
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], vtable.MainWnd.0
mov dword [ebp - 0x20], vtable.LdsJsBasic::WebWindowListener.0
test eax, eax
je 0x40c642
push eax
call fcn.0040d3f4
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40c659
push eax
call fcn.00435617
add esp, 4
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
test eax, eax
je 0x40c677
push eax
call fcn.00435617
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.0042b793
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call fcn.0040d44a
test si, si
je 0x40c625
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x46fbf8
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x46fc10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push 0x46fbf8
mov dword [0x46fc10], eax
call edi
mov ecx, dword [0x46fbe8]
mov eax, dword [0x46fbf0]
mov edx, dword [0x46fbe4]
sub eax, ecx
push 0
push dword [0x470aec]
push 0
push 0
push eax
mov eax, dword [0x46fbec]
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 0x40c625
push 0
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop
test ebx, ebx
je 0x40c757
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
jne 0x40c757
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40c734
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40c730
test eax, eax
je 0x40c7d8
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
call dword [eax]
test eax, eax
jne 0x40c794
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x118
ja 0x40c7ac
je 0x40c7c8
cmp eax, 0xf
je 0x40c7c8
cmp eax, 0xa0
jmp 0x40c7b1
cmp eax, 0x200
je 0x40c7c8
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c730
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40c730
mov esi, dword [ebp - 0x58]
call fcn.0040b3c0
jmp 0x40c627