Function at 0x40d980
Capabilities:
Check if file exists
Check mutex on windows
Delete file
Get file attributes
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546666
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a0
mov eax, dword [0x5903c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
push 0x30
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0051df40
add esp, 0xc
lea ecx, [ebp - 0x104]
call fcn.00408a70
lea eax, [ebp - 0x104]
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [0x599cbc], eax
xor eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - method.ATL::CComModule.virtual_0], vtable.ATL::CComModule.0
movups xmmword [ebp - 0x17c], xmm0
mov dword [ebp - 0x120], 0
movups xmmword [ebp - 0x11c], xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x10c], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
cmp word [esi], ax
jne 0x40da6a
xor ecx, ecx
jmp 0x40da7f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40da70
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xbc]
call fcn.00411010
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xbc]
movq qword [ebp - 0x20], xmm0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
call fcn.00421d70
lea ecx, [ebp - 0xd4]
call fcn.0040c290
push str.ProLiveTool.exe
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xa4]
call fcn.00414b10
add esp, 4
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x8c]
push str.ProLiveCopyTool.exe
call fcn.00414b10
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0xa4]
add esp, 4
cmp dword [ebp - 0x90], 8
cmovae eax, dword [ebp - 0xa4]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x40db38
test al, 0x10
jne 0x40db38
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
call esi
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40db69
test al, 0x10
jne 0x40db69
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
call esi
push str.ProLiveCopyTool.tmp
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x74]
call fcn.00414b10
add esp, 4
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
cmovae eax, dword [ebp - 0x74]
push eax
call edi
cmp eax, 0xffffffff
je 0x40dba4
test al, 0x10
jne 0x40dba4
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push eax
call esi
mov esi, dword [ebp - 0x154]
push esi
call fcn.004e3cd0
add esp, 4
lea eax, [ebp - 0x288]
push eax
call fcn.004dfbd0
add esp, 4
mov ecx, eax
call fcn.004eb180
push eax
call fcn.004e4040
add esp, 4
lea ecx, [ebp - 0x288]
call fcn.004eaa40
call fcn.0040d8e0
call fcn.004357e0
push esi
call fcn.004cf5a0
add esp, 4
xor edx, edx
push dword [ebp - 0x148]
push ecx
xor ecx, ecx
call fcn.00416270
add esp, 8
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40dc39
mov eax, dword [ecx]
jmp 0x40dc3b
mov eax, ecx
push 4
xor edx, edx
push str._dpi
mov word [eax], dx
call fcn.00411010
lea ecx, [ebp - 0x2c]
call fcn.00421fb0
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x40dcbd
cmp esi, dword [ebp - 0x1c]
sete al
test al, al
jne 0x40dcbd
cmp dword [esi + 0x14], 8
jb 0x40dc6f
mov ecx, dword [esi]
jmp 0x40dc71
mov ecx, esi
mov edx, dword [esi + 0x10]
push 1
push 0x5748f8
call fcn.00415dc0
add esp, 8
test eax, eax
jne 0x40dcbd
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsProcessDPIAware
push str.User32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dcbd
push str.SetProcessDPIAware
push str.User32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dcbd
call eax
push dword [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00416270
add esp, 8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40dd03
mov eax, dword [ecx]
jmp 0x40dd05
mov eax, ecx
push 7
xor edx, edx
push str._extern
mov word [eax], dx
call fcn.00411010
lea ecx, [ebp - 0x2c]
call fcn.00421fb0
mov esi, dword [ebp - 0x20]
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x40de2b
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 5
jne 0x40ddb3
cmp esi, 0x599880
je 0x40dd5d
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x599880
call fcn.00411110
lea eax, [esi + 0x18]
cmp eax, 0x599898
je 0x40dd76
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x599898
call fcn.00411110
lea eax, [esi + 0x30]
cmp eax, 0x5998b0
je 0x40dd8f
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x5998b0
call fcn.00411110
lea ecx, [esi + 0x48]
call fcn.00414ca0
lea ecx, [esi + 0x60]
mov dword [0x5998c8], eax
call fcn.00414ca0
mov dword [0x5998cc], eax
mov dword [0x5998d0], 0
cmp edi, 6
jne 0x40de28
cmp esi, 0x599880
je 0x40ddcf
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x599880
call fcn.00411110
lea eax, [esi + 0x18]
cmp eax, 0x599898
je 0x40dde8
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x599898
call fcn.00411110
lea eax, [esi + 0x30]
cmp eax, 0x5998b0
je 0x40de01
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x5998b0
call fcn.00411110
lea ecx, [esi + 0x48]
call fcn.00414ca0
lea ecx, [esi + 0x60]
mov dword [0x5998c8], eax
call fcn.00414ca0
lea ecx, [esi + 0x78]
mov dword [0x5998cc], eax
call fcn.00414ca0
mov dword [0x5998d0], eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x148]
mov edx, eax
push ecx
mov ecx, esi
call fcn.00416270
add esp, 8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40de70
mov eax, dword [ecx]
jmp 0x40de72
mov eax, ecx
push 8
xor edx, edx
push str._extern2
mov word [eax], dx
call fcn.00411010
lea ecx, [ebp - 0x2c]
call fcn.00421fb0
mov esi, dword [ebp - 0x20]
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x40df98
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 5
jne 0x40df20
cmp esi, 0x5998d8
je 0x40deca
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x5998d8
call fcn.00411110
lea eax, [esi + 0x18]
cmp eax, 0x5998f0
je 0x40dee3
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x5998f0
call fcn.00411110
lea eax, [esi + 0x30]
cmp eax, 0x599908
je 0x40defc
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x599908
call fcn.00411110
lea ecx, [esi + 0x48]
call fcn.00414ca0
lea ecx, [esi + 0x60]
mov dword [0x599920], eax
call fcn.00414ca0
mov dword [0x599924], eax
mov dword [0x599928], 0
cmp edi, 6
jne 0x40df95
cmp esi, 0x5998d8
je 0x40df3c
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x5998d8
call fcn.00411110
lea eax, [esi + 0x18]
cmp eax, 0x5998f0
je 0x40df55
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x5998f0
call fcn.00411110
lea eax, [esi + 0x30]
cmp eax, 0x599908
je 0x40df6e
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x599908
call fcn.00411110
lea ecx, [esi + 0x48]
call fcn.00414ca0
lea ecx, [esi + 0x60]
mov dword [0x599920], eax
call fcn.00414ca0
lea ecx, [esi + 0x78]
mov dword [0x599924], eax
call fcn.00414ca0
mov dword [0x599928], eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x148]
mov edx, eax
push ecx
mov ecx, esi
call fcn.00416270
add esp, 8
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40dfdd
mov eax, dword [ecx]
jmp 0x40dfdf
mov eax, ecx
push 5
xor edx, edx
push str._mini
mov word [eax], dx
call fcn.00411010
lea ecx, [ebp - 0x2c]
call fcn.00421fb0
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x40e7c2
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 2
jb 0x40e7c2
lea ecx, [esi - 1]
lea ecx, [ecx + ecx*2]
cmp dword [edi + ecx*8 + 0x14], 8
lea ecx, [edi + ecx*8]
lea edx, [ecx + 0x10]
jb 0x40e037
mov ecx, dword [ecx]
mov edx, dword [edx]
push 5
push str.debug
call fcn.00415dc0
add esp, 8
mov dword [ebp - 0x16c], 0
neg eax
lea ecx, [ebp - 0x2b0]
sbb eax, eax
inc eax
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x16c]
push eax
sub esp, 0xc
push edi
call fcn.0040ecd0
add esp, 4
mov ecx, eax
call fcn.0040f460
lea ecx, [ebp - 0x248]
call fcn.0040ebe0
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004cddbe
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x16c]
xor ecx, ecx
mov dword [0x5996ac], eax
lea eax, [edi + 0x18]
mov word [ebp - 0x5c], cx
push 0xffffffffffffffff
push ecx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
call fcn.00411110
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov word [ebp - 0x44], ax
movlpd qword [ebp - 0x168], xmm0
mov dword [ebp - 0x158], eax
cmp esi, 4
jb 0x40e13f
lea ecx, [edi + 0x30]
call fcn.00414d60
lea ecx, [edi + 0x48]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x15c], edx
call fcn.00414e20
mov dword [ebp - 0x158], eax
jmp 0x40e157
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x164], eax
cmp esi, 6
jb 0x40e178
lea ecx, [edi + 0x60]
call fcn.00414ee0
lea ecx, [edi + 0x78]
mov dword [ebp - 0x150], eax
call fcn.00414ee0
mov dword [ebp - 0x14c], eax
cmp esi, 7
jb 0x40e194
lea eax, [edi + 0x90]
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x40e194
push 0xffffffffffffffff
push 0
push eax
call fcn.00411110
cmp dword [ebp - 0x34], 0
jbe 0x40e1bd
push 4
push 0
push str.http
lea ecx, [ebp - 0x44]
call fcn.00410f20
cmp eax, 0xffffffff
jne 0x40e1bd
push 0x56f30c
lea ecx, [ebp - 0x44]
call fcn.0040ea90
mov eax, dword [ebp - 0x16c]
cmp eax, 9
jne 0x40e350
push dword [ebp - 0x14c]
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x17c]
call fcn.0040d860
add esp, 4
test eax, eax
je 0x40e770
push 0x178
call fcn.0051a0cf
add esp, 4
mov esi, eax
push 0x178
push 0
push esi
call fcn.0051df40
movups xmm0, xmmword [ebp - 0x17c]
push ecx
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, esi
call fcn.0041c700
mov ecx, dword [ebp - 0x148]
lea edx, [ebp - 0x5c]
mov dword [0x5996a4], eax
mov dword [eax + 0x6c], ecx
lea ecx, [eax + 0x30]
cmp ecx, edx
je 0x40e247
push 0xffffffffffffffff
push 0
mov eax, edx
push eax
call fcn.00411110
mov eax, dword [0x5996a4]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x164]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x84], ecx
lea ecx, [eax + 0xa0]
mov dword [eax + 0x58], 9
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x40e286
push 0xffffffffffffffff
push 0
push eax
call fcn.00411110
push str.GG_WIFI_20140221_MiniNews
lea ecx, [ebp - 0x1b4]
call fcn.0040eb20
mov ecx, dword [0x5996a4]
lea eax, [ebp - 0x1b4]
add ecx, 0xfc
cmp ecx, eax
je 0x40e2b6
push 0xffffffffffffffff
push 0
push eax
call fcn.00411110
lea ecx, [ebp - 0x1b4]
call fcn.0040eae0
mov eax, dword [0x5996a4]
add eax, 0xfc
cmp dword [eax + 0x14], 8
jb 0x40e2d3
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x599700], eax
test eax, eax
je 0x40e334
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e334
push str.9D9495D928D40D3489B_NEWS
lea ecx, [ebp - 0x184]
call fcn.0040eb20
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x154]
push 0
push eax
push 0x40ceb0
push dword [ebp - 0x14c]
call fcn.0040d720
lea ecx, [ebp - 0x184]
jmp 0x40e622
call fcn.00435870
lea ecx, [ebp - 0x44]
call fcn.0040eae0
lea ecx, [ebp - 0x5c]
call fcn.0040eae0
xor esi, esi
jmp 0x40e7f1
cmp eax, 3
jne 0x40e4d1
mov eax, dword [ebp - 0x150]
mov ecx, 0x1b8
test eax, eax
mov edx, 0xfa
cmove eax, ecx
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
mov dword [ebp - 0x150], eax
cmove ecx, edx
mov edx, eax
mov dword [ebp - 0x14c], ecx
push ecx
lea ecx, [ebp - 0x17c]
call fcn.0040d7f0
add esp, 4
test eax, eax
je 0x40e770
push 0x178
call fcn.0051a0cf
add esp, 4
mov esi, eax
push 0x178
push 0
push esi
call fcn.0051df40
movups xmm0, xmmword [ebp - 0x17c]
push ecx
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, esi
call fcn.0041c700
mov ecx, dword [ebp - 0x148]
mov dword [0x5996a4], eax
mov dword [eax + 0x6c], ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.0040c400
mov eax, dword [0x5996a4]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x164]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x58], 3
mov dword [eax + 0x84], ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0040c430
push str.GG_WIFI_20140221_MiniNews_HTML
lea ecx, [ebp - 0x184]
call fcn.0040eb20
lea eax, [ebp - 0x184]
push eax
call fcn.0040c460
lea ecx, [ebp - 0x184]
call fcn.0040eae0
push str.9D9495D928D40D3489B_HTML_PARENT
lea ecx, [ebp - 0x184]
call fcn.0040eb20
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x154]
push 0
push eax
push dword [sym.imp.USER32.dll_DefWindowProcW]
push dword [ebp - 0x14c]
call fcn.0040d720
add esp, 0x10
lea ecx, [ebp - 0x184]
mov esi, eax
call fcn.0040eae0
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call eax
push str.9D9495D928D40D3489B_HTML
lea ecx, [ebp - 0x19c]
call fcn.0040eb20
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x154]
push esi
push eax
push 0x40ceb0
push dword [ebp - 0x14c]
call fcn.0040d720
lea ecx, [ebp - 0x19c]
jmp 0x40e622
cmp eax, 5
jne 0x40e770
mov ecx, dword [ebp - 0x150]
lea eax, [ecx - 0x15]
cmp eax, 0x1de
ja 0x40e770
mov edx, dword [ebp - 0x14c]
lea eax, [edx - 0x15]
cmp eax, 0x1de
ja 0x40e770
push edx
mov edx, ecx
lea ecx, [ebp - 0x17c]
call fcn.0040d7f0
add esp, 4
test eax, eax
je 0x40e770
push 0x178
call fcn.0051a0cf
add esp, 4
mov esi, eax
push 0x178
push 0
push esi
call fcn.0051df40
movups xmm0, xmmword [ebp - 0x17c]
push ecx
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, esi
call fcn.0041c700
mov ecx, dword [ebp - 0x148]
mov dword [0x5996a4], eax
mov dword [eax + 0x6c], ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.0040c400
mov eax, dword [0x5996a4]
mov ecx, dword [ebp - 0x158]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x164]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp - 0x15c]
mov dword [eax + 0x58], 5
mov dword [eax + 0x84], ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0040c430
push str.9D9495D928D40D3489B_JS_PARENT
lea ecx, [ebp - 0x19c]
call fcn.0040eb20
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x154]
push 0
push eax
push dword [sym.imp.USER32.dll_DefWindowProcW]
push dword [ebp - 0x14c]
call fcn.0040d720
add esp, 0x10
lea ecx, [ebp - 0x19c]
mov esi, eax
call fcn.0040eae0
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call eax
push str.9D9495D928D40D3489B_JS
lea ecx, [ebp - 0x1cc]
call fcn.0040eb20
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x1cc]
mov ecx, dword [ebp - 0x154]
push esi
push eax
push 0x40ceb0
push dword [ebp - 0x14c]
call fcn.0040d720
lea ecx, [ebp - 0x1cc]
add esp, 0x10
mov esi, eax
call fcn.0040eae0
test esi, esi
je 0x40e770
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x599890], 0
jbe 0x40e692
push str.9D9495D928D40D3489B_EXTERNAL
lea ecx, [ebp - 0x1e4]
call fcn.0040eb20
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x1e4]
push esi
push eax
push 0x40c9a0
push connect
mov edx, connect
call fcn.0040d720
add esp, 0x10
mov dword [0x5998d4], eax
lea ecx, [ebp - 0x1e4]
call fcn.0040eae0
cmp dword [0x5998e8], 0
jbe 0x40e6e0
push str.9D9495D928D40D3489B_EXTERNAL2
lea ecx, [ebp - 0x1fc]
call fcn.0040eb20
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x1fc]
push esi
push eax
push 0x40c9a0
push connect
mov edx, connect
call fcn.0040d720
add esp, 0x10
mov dword [0x59992c], eax
lea ecx, [ebp - 0x1fc]
call fcn.0040eae0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0x24
push eax
push 0
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], 0x7e9
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x120]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x40e770
mov edi, 1
movzx eax, byte [0x5996a0]
cmp dword [ebp - 0x11c], 0x202
cmove eax, edi
mov byte [0x5996a0], al
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x40e727
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x40e785
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x40e7ae
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov esi, dword [0x599704]
test esi, esi
je 0x40e7e1
mov ecx, esi
call fcn.0043d340
push 0x890
push esi
call fcn.00519e9a
add esp, 8
mov esi, dword [ebp - 0x118]
mov dword [0x599704], 0
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x40e806
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
cmp eax, 8
jb 0x40e835
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
cmp eax, 8
jb 0x40e86a
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x94], 0
cmp eax, 8
jb 0x40e8a5
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xd4], ax
test edi, edi
je 0x40e8f7
push dword [ebp - 0x148]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.00416270
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.004085e0
mov eax, dword [ebp - 0xa8]
cmp eax, 8
jb 0x40e915
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.00411a50
xor eax, eax
mov dword [ebp - 0xa8], 7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
call fcn.00422340
cmp dword [ebp - 0x100], 0
mov dword [ebp - method.ATL::CComModule.virtual_0], vtable.ATL::CComModule.0
je 0x40e988
cmp dword [ebp - 0xf8], 0
je 0x40e96b
lea ecx, [ebp - 0x100]
call fcn.0040b120
mov dword [ebp - 0xf8], 0
mov edx, dword [ebp - 0xdc]
test edx, edx
je 0x40e97b
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00519876
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10