Function at 0x59d500
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e66a5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x4c]
call fcn.004a8840
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403290
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403290
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403290
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0x3c
mov ecx, dword [ebp - 0x74]
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x59d58d
mov ecx, dword [ebp - 0x74]
add ecx, 4
call fcn.0040ee60
movzx ecx, al
test ecx, ecx
je 0x59d5cf
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a8860
mov eax, dword [ebp - 0x60]
jmp 0x59d799
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.0059d240
push str._temp
mov eax, dword [ebp - 0x74]
add eax, 4
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040bb50
add esp, 0xc
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ca60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00403270
push 0
lea ecx, [ebp - 0x5c]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
mov ecx, dword [ebp - 0x74]
call fcn.00493020
push eax
lea ecx, [ebp - 0x4c]
call fcn.0059e100
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x59d69b
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a8860
mov eax, dword [ebp - 0x68]
jmp 0x59d799
lea edx, [ebp - 0x58]
push edx
push str.ETag
lea ecx, [ebp - 0x4c]
call fcn.0059e0e0
lea ecx, [ebp - 0x5c]
call fcn.0040ee60
movzx eax, al
test eax, eax
jne 0x59d71e
lea ecx, [ebp - 0x58]
call fcn.00493020
push eax
lea ecx, [ebp - 0x5c]
call fcn.004031c0
test eax, eax
jne 0x59d71e
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a8860
mov eax, dword [ebp - 0x6c]
jmp 0x59d799
mov ecx, dword [ebp - 0x74]
add ecx, 4
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x74]
add ecx, 4
call fcn.00493020
push eax
lea ecx, [ebp - 0x14]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
jne 0x59d75c
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.0059d160
mov dword [ebp - 0x70], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00403270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004a8860
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret