Function at 0x10043130
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091450
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100af4a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10001aaf
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.10001794
or edi, 0xffffffff
test eax, eax
jne 0x100432a7
push eax
push dword [ebp + 8]
call fcn.10058d68
add esp, 8
test eax, eax
jne 0x100432cb
call fcn.10003d87
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100431b1
push 0x80004005
call fcn.1000118b
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x
push eax
call fcn.10002ff4
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp + 8]
call fcn.10058e1c
add esp, 8
test eax, eax
je 0x10043304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100995b8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000287e
add esp, 0xc
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10001794
mov ebx, dword [ebp - 0x14]
mov edx, edi
add ebx, 0xfffffff0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10043246
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x100432ae
push 0x100995b8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000287e
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004328a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100432a7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
jmp 0x100432cd
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100432cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100432ee
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp + 8]
mov ecx, ebx
call fcn.10001794
test eax, eax
jne 0x1004328a
push 0x100995b8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000287e
add esp, 0xc
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10001794
mov ebx, dword [ebp - 0x18]
mov edx, edi
add ebx, 0xfffffff0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10043366
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
je 0x1004339b
push 0x100995b8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000287e
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x18]
call fcn.1000415b
jmp 0x1004328a
lea ecx, [ebp - 0x10]
call fcn.1000415b
jmp 0x100432cb