Function at 0x10052e40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acc45
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x100dbc1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebx + 4]
call esi
push 0
push dword [ebx + 0xa8]
call esi
call fcn.10021db0
mov ecx, eax
call fcn.100506b0
push 0
push str.CouponClientWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10053048
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10053048
lea eax, [ebp - 0x2c]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ebx
je 0x10052f09
lea eax, [ebp - 0x24]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
mov ebx, 3
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0xd], 1
test al, al
jne 0x10052f0d
mov byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x20]
or esi, 0xffffffff
test edi, edi
je 0x10052f3b
test bl, 2
je 0x10052f3b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10052f3b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10052f3b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10052f68
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10052f68
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10052f68
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x10053032
lea eax, [ebp - 0x34]
push eax
call fcn.1003b6a0
add esp, 4
mov eax, dword [eax]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], eax
call fcn.10015e70
mov edi, eax
push str.post_msg_:_disable_coupon__msg:
push edi
mov byte [ebp - 4], 3
call fcn.10012080
mov ebx, dword [ebp - 0x18]
add esp, 8
mov ecx, edi
push dword [ebx + 0x154]
call fcn.10020e10
push str.__hwnd
push edi
call fcn.10012080
add esp, 8
test edi, edi
jne 0x10052fcf
xor ecx, ecx
jmp 0x10052fd6
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
mov eax, dword [ecx + 0x14]
push dword [ebp - 0x1c]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edi
call fcn.10017b00
mov ecx, dword [ebp - 0x14]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0xcc]
call fcn.10012280
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10053035
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10053035
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10053035
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x10053035
mov ebx, dword [ebp - 0x18]
push 0
push 0
push dword [ebx + 0x154]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, ebx
call fcn.10052bf0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret