Function at 0x10009531
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x58
mov eax, 0x10081c62
call fcn.1006a09e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], ebx
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1000d992
mov eax, dword [0x100b27b4]
mov ecx, 0x100b27b4
mov byte [ebp - 0x11], bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edi, 0x104
push edi
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10002938
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10002668
push ecx
mov eax, esp
mov dword [ebp - 0x3c], esp
push eax
mov ecx, 0x10099ec0
call fcn.10002a34
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.10002aac
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10009d65
pop ecx
pop ecx
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.100023e1
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.10002b29
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x1c]
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x3c], esp
mov esi, esp
mov dword [ebp - 0x3c], eax
call fcn.10002aac
add eax, 0x10
mov dword [esi], eax
call fcn.10007b09
pop ecx
cmp al, bl
je 0x10009947
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], ebx
push 3
push 1
push closesocket
push edi
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 6
call fcn.1000b010
test eax, eax
jne 0x100096ea
lea eax, [ebp - 0x18]
push eax
lea esi, [ebp - 0x34]
call fcn.1000afda
test eax, eax
jne 0x100096d9
mov esi, dword [ebp - 0x34]
lea eax, [esi + 1]
push eax
call fcn.1005fb39
pop ecx
mov edi, eax
push esi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.1000af9d
neg eax
sbb al, al
inc al
mov byte [ebp - 0x11], al
je 0x100096ce
push ecx
mov eax, esp
mov dword [ebp - 0x30], esp
push eax
mov ecx, 0x10099edc
call fcn.10002a34
push ecx
mov byte [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x28], esp
push eax
mov ecx, 0x10099ee0
call fcn.10002a34
push ecx
mov byte [ebp - 4], 8
mov eax, esp
mov dword [ebp - 0x24], esp
push eax
mov ecx, 0x10099ee4
call fcn.10002a34
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push esi
push edi
push eax
mov byte [ebp - 4], 9
call fcn.100071da
lea eax, [ebp - 0x54]
add esp, 0xc
push eax
mov byte [ebp - 4], 6
call fcn.1000918c
add esp, 0x14
cmp edi, ebx
je 0x100096d9
push edi
call fcn.10060146
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x100096ea
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
mov eax, dword [0x100b27b4]
mov ecx, 0x100b27b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x10009733
lea eax, [ebp - 0x28]
push str.OfferID
push eax
lea ecx, [ebp + 8]
call fcn.1000423e
pop ecx
pop ecx
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.100023e1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.10002b29
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x50], ebx
jbe 0x10009808
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x50]
jae 0x10009833
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + eax*4]
sub eax, 0x10
call fcn.10002aac
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], ebx
je 0x10009789
push eax
lea esi, [ebp - 0x24]
call fcn.100041e8
cmp eax, 0xffffffff
jne 0x100097ed
push 0x10099f00
lea esi, [ebp - 0x24]
call fcn.100041e8
cmp eax, ebx
jl 0x100097ed
cmp eax, dword [edi - 0xc]
jge 0x100097ed
lea edx, [eax + 8]
lea eax, [ebp - 0x28]
push eax
mov eax, esi
call fcn.1000a8c7
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
call fcn.1000a7be
push dword [ebp - 0x28]
call fcn.1005fe06
pop ecx
push ebx
mov dword [ebp - 0x44], eax
mov esi, edx
call fcn.10060f55
cmp esi, edx
pop ecx
jl 0x100097e2
jg 0x100097d9
cmp dword [ebp - 0x44], eax
jbe 0x100097e2
push edi
lea ecx, [ebp - 0x64]
call fcn.10004312
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.10002b29
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xc
call fcn.10002b29
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x50]
jb 0x1000974f
lea esi, [ebp - 0x54]
call fcn.1000aa4f
lea eax, [ebp - 0x64]
mov ecx, esi
call fcn.1000aa74
cmp dword [ebp - 0x50], ebx
jne 0x1000983d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x11]
jmp 0x10009924
push 0x80070057
call fcn.10002b60
mov eax, dword [0x100b27b4]
mov ecx, 0x100b27b4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xf
xor esi, esi
cmp dword [ebp - 0x50], ebx
jbe 0x1000989d
mov edi, dword [ebp - 0x54]
cmp esi, dword [ebp - 0x50]
jae 0x10009833
lea eax, [ebp - 0x24]
push 0x10099f30
push eax
mov ecx, edi
call fcn.10002473
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 0x10
call fcn.10004067
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10002b29
inc esi
add edi, 4
cmp esi, dword [ebp - 0x50]
jb 0x10009863
mov edi, dword [ebp - 0x28]
push 2
push ebx
push 0x40000000
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.1000b010
test eax, eax
jne 0x10009919
push 0xfde9
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.10002aac
add eax, 0x10
mov dword [esi], eax
call fcn.1000714f
add esp, 0xc
mov esi, eax
cmp byte [ebp - 0x11], bl
je 0x100098f8
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000af6a
mov byte [ebp - 0x11], 1
test eax, eax
je 0x100098fb
mov byte [ebp - 0x11], bl
cmp dword [ebp - 0x18], ebx
je 0x1000990c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], ebx
cmp esi, ebx
je 0x1000991c
push esi
call fcn.10060146
pop ecx
jmp 0x1000991c
mov byte [ebp - 0x11], bl
lea eax, [edi - 0x10]
call fcn.10002b29
lea esi, [ebp - 0x64]
call fcn.1000258e
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.10002b29
cmp dword [ebp - 0x18], ebx
je 0x1000994b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000994b
mov byte [ebp - 0x11], 1
lea esi, [ebp - 0x38]
call fcn.1000d9e3
lea esi, [ebp - 0x54]
call fcn.1000258e
mov eax, dword [ebp - 0x3c]
call fcn.10002b29
lea esi, [ebp - 0x38]
call fcn.1000d9e3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10002b29
mov al, byte [ebp - 0x11]
call fcn.1006a176
ret