Function at 0x1005b330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b03c6
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2fc], 0
test eax, eax
jne 0x1005b3a1
mov dword [edi + 0x10], 0
mov ecx, edi
push 0
mov dword [edi + 0x14], 0xf
push 0x100c8b34
mov byte [edi], 0
call fcn.1001dd80
jmp 0x1005ba46
call fcn.10078f30
mov dword [ebp - 0x300], eax
test eax, eax
je 0x1005b37d
call fcn.10078f30
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x1005b37d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100e0ea0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x1005ba65
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x304], eax
mov dword [ebp - 4], 0
call fcn.1000a9e0
mov ecx, eax
test ecx, ecx
je 0x1005ba6f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x1005b454
movzx eax, ax
lea ecx, [ebp - 0x2f4]
push eax
call fcn.10009c70
jmp 0x1005b482
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005b460
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2f4]
call fcn.10009e80
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.1005da90
mov edx, dword [ebp - 0x2f4]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005b4be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x30c]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x2fc], ecx
je 0x1005b522
lea eax, [ebp - 0x2f8]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 4
mov dword [ebp - 0x2fc], 6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1005b51d
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp - 0x2e5], 1
jmp 0x1005b529
mov ecx, 6
mov byte [ebp - 0x2e5], 0
mov esi, dword [ebp - 0x2f4]
test esi, esi
je 0x1005b559
test cl, 4
je 0x1005b559
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1005b559
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1005b559
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x308]
mov dword [ebp - 4], 0
test esi, esi
je 0x1005b58b
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1005b58b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1005b58b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x2e5], 0
mov esi, dword [ebp - 0x304]
je 0x1005b63e
lea eax, [ebp - 0x30c]
push eax
call fcn.1003b6a0
add esp, 4
mov eax, dword [eax]
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2f4], eax
call fcn.10015e70
mov edi, eax
push str.dll_ver:
push edi
mov byte [ebp - 4], 6
call fcn.10012080
test esi, esi
mov edx, 0x100b38d8
cmovne edx, esi
push edx
push edi
call fcn.10010030
mov ecx, dword [ebp - 0x2f4]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x2c8]
call fcn.10012280
mov ecx, dword [ebp - 0x308]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2f4], ecx
test ecx, ecx
je 0x1005b638
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1005b638
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x2f4]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1005b638
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2f0]
mov eax, dword [ebp - 0x2ec]
sub esp, 8
movd xmm0, dword [eax]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10078ef0
push eax
push 0x100b86e8
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2ec]
add esp, 0xc
movd xmm0, dword [eax + 4]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10078ef0
push eax
push str.amount
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
add esp, 0x14
push 0xfde9
push dword [eax + 0x2c]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.host_id
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b6e7
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x18]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.img_path
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b734
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x1c]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.title
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b781
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x24]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push 0x100b800c
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b7ce
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x28]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.browser_path
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b81b
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x20]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.info
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b868
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
add eax, 0x4c
cmp dword [eax + 0x14], 0x10
jb 0x1005b879
mov eax, dword [eax]
push eax
call fcn.10078f60
push eax
push str.click_url
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2ec]
add esp, 0x10
add eax, 0x34
cmp dword [eax + 0x14], 0x10
jb 0x1005b8a4
mov eax, dword [eax]
push eax
call fcn.10078f60
push eax
push str.itemid
push dword [ebp - 0x2e4]
call fcn.10078e70
add esp, 0x10
lea ecx, [ebp - 0x2b4]
push 0xfde9
push esi
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.dll_ver
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b903
push eax
call fcn.10087651
add esp, 4
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2b4]
push 0xfde9
push dword [eax + 0x14]
call fcn.1005ab30
push dword [eax]
call fcn.10078f60
push eax
push str.img_url
push dword [ebp - 0x2e4]
call fcn.10078e70
mov eax, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b0]
add esp, 0x10
cmp eax, ecx
je 0x1005b950
push eax
call fcn.10087651
add esp, 4
push dword [ebp - 0x2e4]
push str.coupon_info
push dword [ebp - 0x300]
call fcn.10078e70
push dword [ebp - 0x300]
call fcn.100791b0
add esp, 0x10
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 7
test eax, eax
je 0x1005b9ce
push eax
lea ecx, [ebp - 0x2e0]
call fcn.10011010
push eax
lea ecx, [ebp - 0x230]
call fcn.1005b2f0
lea ecx, [ebp - 0x2e0]
call fcn.10011940
push dword [ebp - 0x2f0]
call fcn.10087651
add esp, 4
push dword [ebp - 0x300]
call fcn.10078fe0
movups xmm0, xmmword [ebp - 0x230]
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x230]
mov dword [edi + 0x14], 0
add esp, 4
movups xmmword [edi], xmm0
mov byte [ebp - 0x230], 0
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
call fcn.10011940
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005ba46
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000a7c0
push 0x80004005
call fcn.1000a7c0
int3