Function at 0x10068340
Capabilities:
Check if file exists
Check mutex on windows
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b19d7
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.100765e0
mov eax, dword [0x100dbc1c]
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 edi, ecx
mov dword [ebp - 0xe94], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x10c]
push 0
push 1
push eax
mov dword [ebp - 0xe9c], ebx
mov dword [ebp - 0xe88], 0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x100694ab
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
push 0
push 0x1a
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100837f0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.100837f0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.100837f0
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.100837f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
add esp, 0x3c
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100e0ea0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push str.ComputerZ_CN.exe
push eax
lea eax, [ebp - 0x830]
push eax
call esi
push str.360wpapp.exe
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push eax
call esi
push str.LdsLite.exe
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc40]
push eax
call esi
push str.LDSGameVer.dll
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xe48]
push eax
call esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100684cb
push str.Ludashi
jmp 0x10068511
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100684e3
push str.360wp
jmp 0x10068511
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100684fb
push str.ldslite
jmp 0x10068511
lea eax, [ebp - 0xe48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006851a
push str.LDSGameMaster
lea eax, [ebp - 0x420]
push eax
call esi
push str.LogCouponHelperWnd.log
lea eax, [ebp - 0x420]
push eax
call esi
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.1003af10
push ebx
mov ecx, edi
call fcn.10064a30
test eax, eax
jne 0x100686e4
push str.__reload_log_switch
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10068578
push 0
push str.RunCouponWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10068578
push 0
push 0
push dword [edi + 0x8c]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0xe90]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xe88], 1
je 0x100685d1
lea eax, [ebp - 0xe98]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0xe88], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xe81], 1
test al, al
jne 0x100685d8
mov byte [ebp - 0xe81], 0
mov esi, dword [ebp - 0xe94]
or ebx, 0xffffffff
test esi, esi
je 0x1006860d
test byte [ebp - 0xe88], 2
je 0x1006860d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1006860d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1006860d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xe8c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1006863d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1006863d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1006863d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xe81], 0
je 0x100694ab
lea eax, [ebp - 0xe98]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xf90]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.parse_params_failed__cmd:
push esi
mov byte [ebp - 4], 3
call fcn.10012080
mov eax, dword [ebp - 0xe9c]
mov edx, 0x100b38d8
test eax, eax
cmovne edx, eax
push edx
push esi
call fcn.10010030
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xf90]
call fcn.10012280
mov esi, dword [ebp - 0xe94]
test esi, esi
je 0x100694ab
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100694ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100694ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x100694ab
call fcn.10021db0
mov ecx, eax
call fcn.1004d470
test eax, eax
jne 0x1006880e
lea eax, [ebp - 0xe90]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xe88], 4
je 0x10068751
lea eax, [ebp - 0xe98]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 5
mov dword [ebp - 0xe88], 0xc
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xe81], 1
test al, al
jne 0x10068758
mov byte [ebp - 0xe81], 0
mov esi, dword [ebp - 0xe94]
or ebx, 0xffffffff
test esi, esi
je 0x1006878d
test byte [ebp - 0xe88], 8
je 0x1006878d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1006878d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1006878d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xe8c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100687bd
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100687bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100687bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0xe81], 0
je 0x100694ab
lea eax, [ebp - 0xe98]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xf90]
mov dword [ebp - 4], 6
call fcn.10015e70
mov esi, eax
push str.stop_use_coupon_helper.
push esi
mov byte [ebp - 4], 7
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
jmp 0x100686a0
cmp dword [edi + 0x2c], 0
jne 0x100694ab
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x100e0e78]
test ecx, ecx
jne 0x1006888a
push 0x100da020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100e0e78], 0
jne 0x10068879
push 4
call fcn.10076018
add esp, 4
mov dword [ebp - 0xe9c], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x10068864
mov ecx, eax
call fcn.100746d0
mov ecx, eax
jmp 0x10068866
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0xe8c], eax
mov dword [0x100e0e78], ecx
push 0x100da020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100e0e78]
push dword [0x100db5e4]
push str.couponbox
push 1
call fcn.10074760
mov esi, dword [0x100e0ef0]
test esi, esi
jne 0x100688d9
push 0x11c
call fcn.10076018
mov esi, eax
add esp, 4
mov dword [ebp - 0xe9c], esi
test esi, esi
je 0x100688d1
push 0x11c
push 0
push esi
call fcn.100837f0
add esp, 0xc
jmp 0x100688d3
xor esi, esi
mov dword [0x100e0ef0], esi
cmp dword [esi + 4], 0
jne 0x10068985
push 0x11c
push 0
push esi
call fcn.100837f0
add esp, 0xc
mov dword [esi], 0x11c
mov dword [ebp - 0xea4], 0
mov dword [ebp - 0xea0], 0
mov dword [ebp - 0xe88], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10068963
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006895c
lea ecx, [ebp - 0xe88]
push ecx
lea ecx, [ebp - 0xea0]
push ecx
lea ecx, [ebp - 0xea4]
push ecx
call eax
movzx eax, word [ebp - 0xe88]
mov dword [ebp - 0xe88], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0xea4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xea0]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xe88]
mov dword [esi + 0xc], eax
push 0
push 0
push 1
push 0
push str.dll_run
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x100e0ea0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xea0]
call fcn.1000ce60
mov dword [ebp - 4], 9
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x100694d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe88], eax
lea eax, [ebp - 0x628]
mov byte [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x10068a1d
movzx eax, ax
lea ecx, [ebp - 0xe88]
push eax
call fcn.10009c70
jmp 0x10068a48
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068a26
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe88]
call fcn.10009e80
lea eax, [ebp - 0xea0]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xe88]
push eax
call fcn.1005da90
mov edx, dword [ebp - 0xe88]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 9
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10068a86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10069570
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10068ae0
push 0x100b8e48
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10068ae0
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10068ae6
mov eax, dword [esi]
push 5
mov dword [0x100e13b4], eax
mov al, byte [esi + 4]
push 0x100b8de0
push esi
mov byte [0x100e13b8], al
call fcn.100694f0
add esp, 0xc
jmp 0x10068ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0xea0]
push esi
push 0
push str.couponbox
call fcn.10062fb0
add esp, 0xc
cmp dword [edi + 4], 0
jne 0x10068be8
push dword [ebp - 0xe94]
lea eax, [edi + 0x20]
push eax
push 0x100db5e8
push 0x100dd6b0
push 0x100e171c
call fcn.1002a320
movzx eax, ax
add esp, 0x14
mov dword [ebp - 0xea4], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x10068b50
call fcn.1006e7e1
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10068b50
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10068be8
push 0
push 0
push eax
call fcn.1006e8e3
cmp word [ebp - 0xea4], 0
je 0x10068be8
lea eax, [edi + 8]
test eax, eax
je 0x100694c9
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x100dd6b4
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100dd6cc]
lea ecx, [edi + 8]
mov dword [ecx + 8], eax
push 0x100dd6b4
mov dword [0x100dd6cc], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100da058]
mov eax, dword [0x100da060]
mov edx, dword [0x100da054]
sub eax, ecx
push 0
push dword [0x100e1720]
push 0
push 0
push eax
mov eax, dword [0x100da05c]
sub eax, edx
push eax
mov eax, dword [ebp - 0xea4]
push ecx
push edx
push SysReAllocString
push 0
movzx eax, ax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006940c
call fcn.1003d9b0
test eax, eax
je 0x1006940c
mov ecx, edi
call fcn.10063080
push 0
lea eax, [ebp - 0xef0]
mov dword [ebp - 0xef0], 1
push eax
lea eax, [ebp - 0xe9c]
mov dword [ebp - 0xeec], 0
push eax
mov dword [ebp - 0xee8], 0
mov dword [ebp - 0xee4], 0
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
jne 0x1006940c
push 0x1f8
call fcn.10076018
add esp, 4
mov dword [ebp - 0xe8c], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x10068c86
lea ecx, [edi + 0xc4]
push ecx
lea ecx, [edi + 0x98]
push ecx
mov ecx, eax
call fcn.10051930
mov ecx, eax
jmp 0x10068c88
xor ecx, ecx
mov eax, dword [edi + 4]
mov dword [edi + 0x2c], ecx
mov dword [ecx + 0x12c], eax
lea eax, [edi + 0x34]
push 1
push dword [edi + 0x4c]
lea ecx, [ebp - 0xe80]
mov byte [ebp - 4], 9
push eax
call fcn.100623b0
lea eax, [ebp - 0xe60]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xe80]
call fcn.10068030
cmp dword [ebp - 0xe50], 0
mov byte [ebp - 4], 0xe
jne 0x10068d27
lea ecx, [ebp - 0xe60]
call fcn.10011940
mov edx, dword [ebp - 0xe6c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x100693ef
mov ecx, dword [ebp - 0xe80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10068d18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100694df
push edx
push ecx
call fcn.10076048
add esp, 8
jmp 0x100693ef
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
mov dword [ebp - 0xe88], eax
jb 0x10068d3e
mov ecx, dword [eax]
mov dword [ebp - 0xe88], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xe8c], ecx
cmp ecx, 0x2e
jne 0x10068e10
mov eax, dword [ebp - 0xe88]
mov edx, ecx
mov ecx, str.coupon_sm_F6F81FB4_E766_9107_AC33_23FBB1E93FAB
sub eax, ecx
mov dword [ebp - 0xe88], eax
nop word [eax + eax]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x10068e07
mov eax, dword [ebp - 0xe88]
add ecx, 2
sub edx, 1
jne 0x10068d70
cmp dword [ebp - 0xe4c], 0x10
lea eax, [ebp - 0xe60]
mov ecx, edi
cmovae eax, dword [ebp - 0xe60]
push eax
call fcn.10066610
test eax, eax
jne 0x10068e9e
lea ecx, [ebp - 0xe60]
call fcn.10011940
mov edx, dword [ebp - 0xe6c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x100693ef
mov ecx, dword [ebp - 0xe80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10068df8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100694df
push edx
push ecx
call fcn.10076048
add esp, 8
jmp 0x100693ef
mov ecx, dword [ebp - 0xe8c]
lea eax, [edi + 0x34]
cmp dword [eax + 0x14], 8
jb 0x10068e18
mov eax, dword [eax]
cmp ecx, 0x2e
jne 0x10068e9e
mov edx, ecx
mov ecx, str.coupon_sm_D843BEFF_B9D9_FE26_939D_B036F30617BE
sub eax, ecx
mov dword [ebp - 0xe8c], eax
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x10068e9e
mov eax, dword [ebp - 0xe8c]
add ecx, 2
sub edx, 1
jne 0x10068e30
lea ecx, [edi + 0xf4]
lea eax, [ebp - 0xe60]
cmp ecx, eax
je 0x10068e71
cmp dword [ebp - 0xe4c], 0x10
push dword [ebp - 0xe50]
cmovae eax, dword [ebp - 0xe60]
push eax
call fcn.1001dd80
mov ecx, dword [edi + 0x2c]
lea eax, [ebp - 0xe60]
add ecx, 0x1d0
cmp ecx, eax
je 0x10068e9e
cmp dword [ebp - 0xe4c], 0x10
push dword [ebp - 0xe50]
cmovae eax, dword [ebp - 0xe60]
push eax
call fcn.1001dd80
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xe88], eax
call fcn.10062e70
cmp dword [eax + 0x30], 0
jne 0x10068ebe
call fcn.10062e70
mov dword [eax + 0x30], 0
call fcn.10062e70
push dword [ebp - 0xe94]
mov ecx, dword [ebp - 0xe88]
add ecx, 0x20
push ecx
push eax
push 0x100dd6b0
push 0x100e171c
call fcn.1002a320
movzx eax, ax
add esp, 0x14
mov dword [ebp - 0xe8c], eax
mov eax, dword [ebp - 0xe88]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x10068f1f
call fcn.1006e7e1
mov ecx, eax
mov eax, dword [ebp - 0xe88]
mov dword [eax + 0x14], ecx
test ecx, ecx
jne 0x10068f1f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10068fda
push 0
push 0
push ecx
call fcn.1006e8e3
cmp word [ebp - 0xe8c], 0
jne 0x10068f3a
xor eax, eax
jmp 0x10068fda
mov eax, dword [ebp - 0xe88]
lea ecx, [eax + 8]
mov dword [ebp - 0xea4], ecx
test ecx, ecx
je 0x100694c9
test eax, eax
je 0x100694c9
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0xea4]
push 0x100dd6b4
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xea4]
mov eax, dword [0x100dd6cc]
push 0x100dd6b4
mov dword [ecx + 8], eax
mov dword [0x100dd6cc], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100da058]
mov eax, dword [0x100da060]
mov edx, dword [0x100da054]
sub eax, ecx
push 0
push dword [0x100e1720]
push 0
push 0
push eax
mov eax, dword [0x100da05c]
sub eax, edx
push eax
mov eax, dword [ebp - 0xe8c]
push ecx
push edx
push 0x82000000
push 0
movzx eax, ax
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x2c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10069045
lea ecx, [ebp - 0xe60]
call fcn.10011940
mov edx, dword [ebp - 0xe6c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x100693ef
mov ecx, dword [ebp - 0xe80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069036
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100694df
push edx
push ecx
call fcn.10076048
add esp, 8
jmp 0x100693ef
push 0
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x30], 0
je 0x1006906f
push 0
push 0
push 1
push 0
push str.coupon_item_received_p
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
lea eax, [ebp - 0xea8]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 0x10
mov byte [ebp - 4], 0xf
mov dword [ebp - 0xe88], ecx
je 0x100690d3
lea eax, [ebp - 0xe90]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0xe88], 0x30
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x100690ce
mov ecx, dword [ebp - 0xe88]
mov byte [ebp - 0xe81], 1
jmp 0x100690da
mov ecx, 0x30
mov byte [ebp - 0xe81], 0
mov edi, dword [ebp - 0xe8c]
test edi, edi
je 0x10069108
test cl, 0x20
je 0x10069108
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10069108
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10069108
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0xea4]
mov dword [ebp - 4], 0xe
test edi, edi
je 0x10069138
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10069138
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10069138
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0xe81], 0
je 0x100691b8
lea eax, [ebp - 0xef8]
push eax
call fcn.1003b6a0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 0x11
call fcn.10015e70
mov edi, eax
push str.message_loop
push edi
mov byte [ebp - 4], 0x12
call fcn.10012080
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [edx + 0x14]
lea ecx, [ebp - 0x1028]
call fcn.10012280
mov edi, dword [ebp - 0xef4]
or ebx, 0xffffffff
test edi, edi
je 0x100691b8
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x100691b8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x100691b8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0xee0], 0x100b8dec
movups xmmword [ebp - 0xedc], xmm0
mov dword [ebp - 0xecc], 0
mov dword [ebp - 0xec8], 0
mov edx, 1
mov byte [ebp - 4], 0x13
mov dword [ebp - 0xe88], edx
xor edi, edi
test edx, edx
je 0x10069229
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xec4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x10069229
mov eax, dword [ebp - 0xee0]
lea ecx, [ebp - 0xee0]
push edi
call dword [eax + 4]
inc edi
test eax, eax
jne 0x100691f5
mov dword [ebp - 0xe88], eax
push 0
push 0
push 0
lea eax, [ebp - 0xec4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edx, dword [ebp - 0xe88]
cmp eax, 0xffffffff
je 0x100691f1
test eax, eax
je 0x100692d5
lea eax, [ebp - 0xec4]
push eax
mov eax, dword [ebp - 0xee0]
lea ecx, [ebp - 0xee0]
call dword [eax]
test eax, eax
jne 0x10069282
lea eax, [ebp - 0xec4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xec4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xec0]
cmp eax, 0x118
ja 0x1006929d
je 0x100692bf
cmp eax, 0xf
je 0x100692bf
cmp eax, 0xa0
jmp 0x100692a2
cmp eax, 0x200
je 0x100692bf
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edx, ecx
mov dword [ebp - 0xe88], edx
cmove eax, edi
mov edi, eax
jmp 0x100691f1
mov edx, dword [ebp - 0xe88]
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, edi
mov edi, eax
jmp 0x100691f1
push dword [ebp - 0xe9c]
call sub.gdiplus.dll_GdiplusShutdown
mov eax, dword [ebp - 0xed0]
mov dword [ebp - 0xe9c], 0
test eax, eax
je 0x10069307
push eax
call fcn.10087651
add esp, 4
mov dword [ebp - 0xed0], 0
mov eax, dword [ebp - 0xedc]
mov dword [ebp - 0xecc], 0
mov dword [ebp - 0xec8], 0
test eax, eax
je 0x10069338
push eax
call fcn.10087651
add esp, 4
mov dword [ebp - 0xedc], 0
mov edx, dword [ebp - 0xe4c]
mov dword [ebp - 0xed8], 0
mov dword [ebp - 0xed4], 0
mov byte [ebp - 4], 0xd
cmp edx, 0x10
jb 0x1006938a
mov ecx, dword [ebp - 0xe60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069380
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100694df
push edx
push ecx
call fcn.10076048
add esp, 8
mov edx, dword [ebp - 0xe6c]
mov dword [ebp - 0xe50], 0
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], 0
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x100693e9
mov ecx, dword [ebp - 0xe80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100693df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100694df
push edx
push ecx
call fcn.10076048
add esp, 8
mov edi, dword [ebp - 0xe94]
xor eax, eax
mov dword [ebp - 0xe70], 0
mov dword [ebp - 0xe6c], 7
mov word [ebp - 0xe80], ax
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1006943d
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10069428
mov ecx, dword [edi + 0x2c]
call fcn.10052de0
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x10069436
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0x2c], 0
push str.coupon_sm_mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0xe94], eax
test eax, eax
je 0x1006946e
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xe94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.1003b2a0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10069489
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100694ab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.100763b4
mov esp, ebp
pop ebp
ret 4
push 1
push 0xc0000005
call fcn.1000e520
push 0x80004005
call fcn.1000a7c0
call fcn.10087516
int3