Function at 0x412fe0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583b98
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x60b9b0]
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
push ecx
mov edx, str.full.data
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004202d0
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x20]
mov edi, eax
neg edi
sbb edi, edi
or esi, 0xffffffff
inc edi
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413050
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x41342a
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41342a
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.00413de0
test eax, eax
jne 0x4130a1
lea ecx, [ebp - 0x48]
xor ebx, ebx
call fcn.00405cb0
jmp 0x41342c
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x4130b6
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x4130da
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
push str..zip
mov edx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0040b3f0
push ecx
mov byte [ebp - 4], 4
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00437000
add esp, 8
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00405d90
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41313e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00407be0
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004135c0
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x30]
test eax, eax
je 0x4133c1
cmp dword [ebx - 0xc], 0
je 0x4133c1
cmp dword [edi - 0xc], 0
je 0x4133c1
lea ecx, [ebp - 0x20]
call fcn.00407f70
mov eax, 0x40
mov byte [ebp - 4], 6
call fcn.00554d90
mov ecx, esp
mov edx, str.XunduBoundary0xKhTSLbOuNdCrY
push 3
push 0x3a
call fcn.004143a0
push eax
lea eax, [ebp - 0x20]
push str._r_n___s___r_n
push eax
call fcn.004142c0
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4131c4
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4131e2
xor eax, eax
jmp 0x4131f7
add esi, esi
mov eax, esi
call fcn.00554f60
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004143a0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b340
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x48]
mov ecx, dword [eax - 0xc]
mov eax, dword [esi - 0xc]
add eax, edx
mov dword [ebp - 0x1c], edx
add eax, ecx
push eax
mov dword [ebp - 0x18], eax
call fcn.0055437d
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x14], eax
push dword [ecx - 0xc]
push ecx
push eax
call fcn.00557570
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov ecx, dword [ecx - 0xc]
add eax, ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x24], ecx
push eax
call fcn.00557570
mov eax, dword [ebp - 0x24]
add esp, 0xc
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
push dword [esi - 0xc]
push esi
push eax
call fcn.00557570
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00407f70
push 0x5e9f64
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.004078b0
lea ecx, [ebp - 0x34]
call fcn.00407f70
mov esi, eax
lea ecx, [ebp - 0x60]
call fcn.00407f70
push esi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x50]
call fcn.00402b30
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00405a50
lea ecx, [ebp - 0x34]
call fcn.00405a50
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.00405a50
push str.XunduBoundary0xKhTSLbOuNdCrY
push str.multipart_form_data__boundary_s
lea eax, [ebp - 0x1c]
push eax
call fcn.00406520
add esp, 0xc
lea ecx, [ebp - 0x24]
push str.Content_Type
call fcn.004078b0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ecx + 0x28]
call fcn.0041e610
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.00405a50
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x50]
push esi
call fcn.0041f720
push esi
call fcn.00554378
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push ecx
push 0
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
push 0
push 0
call fcn.00442ab0
mov esi, dword [ebp - 0x5c]
add esp, 0x14
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x58]
sub eax, esi
mov dword [ebp - 0x18], eax
call fcn.00402a90
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
push esi
call fcn.00405d20
cmp dword [ebp - 0x34], 0
je 0x413388
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
call fcn.00405a50
lea ecx, [ebp - 0x5c]
call fcn.00405cb0
lea ecx, [ebp - 0x50]
call fcn.00405900
lea ecx, [ebp - 0x1c]
call fcn.00405a50
lea ecx, [ebp - 0x28]
call fcn.00405a50
lea ecx, [ebp - 0x20]
call fcn.00405a50
jmp 0x4133c6
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4133e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x413402
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41341d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00405cb0
jmp 0x41342c
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41344b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
lea esp, [ebp - 0x70]
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.00553c8d
mov esp, ebp
pop ebp
ret 8