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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002aeb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa04
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.10007e00
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov cl, byte [eax]
and cl, 0xfc
cmp cl, 4
jne 0x1000826d
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x30]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push edx
call fcn.10004c60
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x100081f1
mov edi, dword [ebp - 0x30]
mov esi, str.content_length
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x10007f06
test dl, dl
je 0x10007f02
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x10007f06
add ecx, 2
add esi, 2
test dl, dl
jne 0x10007ee2
xor ecx, ecx
jmp 0x10007f0b
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x10007f17
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
jmp 0x10007f51
mov esi, str.time
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10007f42
test cl, cl
je 0x10007f3e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10007f42
add eax, 2
add esi, 2
test cl, cl
jne 0x10007f1e
xor eax, eax
jmp 0x10007f47
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10007f51
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x1c], 2
je 0x10007f6c
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push edx
push eax
push ecx
jmp 0x10007ec5
cmp dword [ebp - 0x2c], ebx
je 0x100081f1
cmp dword [ebp - 0x28], ebx
je 0x100081f1
lea edx, [ebp - 0x238]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
cmp eax, 5
mov dword [ebp - 0x20], eax
jge 0x100081f1
mov ecx, eax
shl ecx, 5
add ecx, eax
lea ebx, [eax + ecx*2]
shl ebx, 3
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebx + 0x100377f4]
test ecx, ecx
jne 0x10008267
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov cx, word [edx + 2]
sub ecx, esi
add ecx, edi
lea edi, [ebp - 0xa08]
mov dword [ebp - 0xa0c], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x2c]
mov word [ebp - 0xa10], 0
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebx + 0x100377f0], eax
test eax, eax
jg 0x10008075
lea edx, [ebx + 0x100375f0]
mov ecx, 0x7d
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor ebx, ebx
lea ecx, [edx + 0x1f8]
mov word [edx + 0x1f4], bx
lea esi, [edx + 0x20c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [edx + 0x200], ebx
mov word [edx + 0x208], bx
mov dword [edx + 0x204], ebx
mov edi, dword [esi + 4]
mov edx, dword [edi]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], edi
je 0x100081f1
lea eax, [ebp + 8]
push ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.10008cf0
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push ecx
push edx
mov ecx, esi
call fcn.10008b10
jmp 0x1000804f
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x238]
push eax
push ecx
lea edx, [ebp - 0x134]
push str._s_fatHj_d.exe
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp - 0x1c]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
add esp, 0x10
lea ebx, [eax + 0x100375f0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10030870
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000820c
lea edi, [ebp - 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
ja 0x1000820c
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
lea eax, [esi + 0x100377e8]
push eax
push ecx
call fcn.10007d20
add esp, 8
test eax, eax
jne 0x1000818e
mov ecx, 0x7d
mov edi, ebx
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebx + 0x1f8]
xor edx, edx
mov word [ebx + 0x1f4], di
mov dword [eax], edx
add ebx, 0x20c
mov dword [eax + 4], edx
mov dword [ebx - 0xc], edi
mov word [ebx - 4], di
mov dword [ebx - 8], edi
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], esi
je 0x100081f1
lea edx, [ebp + 8]
push edi
push edx
lea ecx, [ebp + 0xc]
call fcn.10008cf0
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push eax
push ecx
mov ecx, ebx
call fcn.10008b10
jmp 0x10008168
mov edi, dword [esi + 0x10037800]
lea esi, [esi + 0x100377fc]
mov ecx, esi
mov edx, dword [edi + 4]
push edx
push edi
call fcn.10008cc0
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0xa10]
add eax, 8
push ecx
push eax
call fcn.10008d00
mov edi, dword [esi + 8]
add esp, 8
inc edi
push 0
mov dword [esi + 8], edi
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx + 0x100377f4], eax
mov ax, word [edx + 4]
push ebx
mov word [ecx + 0x100377e4], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.10007e50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x7d
xor eax, eax
mov edi, ebx
lea edx, [ebx + 0x1f8]
rep stosd dword es:[edi], eax
xor edi, edi
xor ecx, ecx
mov word [ebx + 0x1f4], di
mov dword [edx], ecx
add ebx, 0x20c
mov dword [edx + 4], ecx
mov dword [ebx - 0xc], edi
mov word [ebx - 4], di
mov dword [ebx - 8], edi
mov esi, dword [ebx + 4]
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], esi
je 0x100081f1
lea ecx, [ebp + 8]
push edi
push ecx
lea ecx, [ebp + 0xc]
call fcn.10008cf0
mov edx, dword [eax]
lea eax, [ebp - 0x20]
push edx
push eax
mov ecx, ebx
call fcn.10008b10
jmp 0x10008245
inc eax
jmp 0x10007f92
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x18]
cmp eax, 5
jge 0x10008529
mov edx, dword [ebp + 0xc]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea ebx, [eax + ecx*2]
mov cx, word [edx + 4]
shl ebx, 3
cmp cx, word [ebx + 0x100377e4]
jne 0x10008520
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebx + 0x100377f4], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 2]
mov dx, word [eax + 6]
mov dword [ebp - 0xa0c], ecx
mov eax, ecx
lea edi, [ebp - 0xa08]
mov word [ebp - 0xa10], dx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x7e0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x10037800]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov ecx, esi
test esi, esi
jne 0x100082fa
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x10008302
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0xa10]
add eax, 8
push ecx
push eax
call fcn.10008d00
mov edx, dword [ebx + 0x10037804]
add esp, 8
inc edx
mov dword [ebx + 0x10037804], edx
mov eax, dword [ebx + 0x10037804]
cmp eax, 0x14
jb 0x1000846b
lea esi, [ebx + 0x100375f0]
push esi
call fcn.100085b0
add esp, 4
cmp eax, 8
mov dword [ebp + 8], eax
jne 0x100083b9
mov dx, word [ebx + 0x100377e4]
push edx
push 9
push 0x100301e8
push esi
call fcn.10007da0
mov ecx, 0x7d
xor eax, eax
mov edi, esi
lea edx, [esi + 0x1f8]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esi + 0x1f4], ax
mov dword [edx], ecx
add esp, 0x10
add esi, 0x20c
mov dword [edx + 4], ecx
mov dword [esi - 0xc], eax
mov word [esi - 4], ax
mov dword [esi - 8], eax
mov ebx, dword [esi + 4]
mov edi, dword [ebx]
cmp edi, ebx
je 0x10008529
mov eax, edi
mov edi, dword [edi]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.10008b10
jmp 0x1000839f
test eax, eax
jge 0x10008529
mov cx, word [ebx + 0x100377e4]
push ecx
push 9
push str.error
push esi
call fcn.10007da0
mov ecx, 0x7d
xor eax, eax
mov edi, esi
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x1f8]
xor edx, edx
mov word [esi + 0x1f4], bx
add esp, 0x10
mov dword [eax], edx
add esi, 0x20c
mov dword [eax + 4], edx
mov dword [esi - 0xc], ebx
mov word [esi - 4], bx
mov dword [esi - 8], ebx
mov edi, dword [esi + 4]
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], edi
je 0x10008434
lea edx, [ebp - 0x20]
push ebx
push edx
lea ecx, [ebp + 0xc]
call fcn.10008cf0
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.10008b10
jmp 0x10008412
mov eax, dword [ebp - 0x18]
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
lea ecx, [eax*8 + 0x100375f0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.10007e50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x28
jbe 0x10008529
lea esi, [ebx + 0x100375f0]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dx, word [ebx + 0x100377e4]
push edx
push 9
push str.error
push esi
call fcn.10007da0
mov ecx, 0x7d
xor eax, eax
mov edi, esi
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esi + 0x1f8]
mov word [esi + 0x1f4], cx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [esi + 0x200], ecx
mov word [esi + 0x208], cx
mov dword [esi + 0x204], ecx
mov ebx, dword [esi + 0x210]
mov edi, dword [ebx]
cmp edi, ebx
je 0x100081f1
mov eax, edi
mov edi, dword [edi]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 8]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.10008cf0
mov eax, dword [eax]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.10010220
mov eax, dword [esi + 0x214]
add esp, 4
dec eax
xor ecx, ecx
mov dword [esi + 0x214], eax
jmp 0x100084d3
inc eax
mov dword [ebp - 0x18], eax
jmp 0x10008270
lea ecx, [ebp - 0x14]
call fcn.10007e50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret