Function at 0x102d1bf
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x140], ebx
jne 0x102d1f6
push 0x1002bc8
push 0x1f37
push 0x1002460
call fcn.0107b644
test byte [esi + 0xec], 4
je 0x102d29d
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [esi + 0x140]
call fcn.010dfceb
mov edi, eax
cmp edi, ebx
jl 0x102d44a
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.010d4e81
mov edi, eax
cmp edi, ebx
jl 0x102d44a
cmp dword [ebp - 0xc], ebx
je 0x102d29d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102d29d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102d284
test byte [eax + 0x1c], 1
je 0x102d284
cmp byte [eax + 0x19], 2
jb 0x102d284
push edi
push dword [ebp - 0xc]
push 0x10023f8
push 0x168
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
cmp edi, ebx
jle 0x102d44f
and edi, 0xffff
or edi, 0x80070000
jmp 0x102d44f
lea eax, [ebp - 8]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010dfceb
mov edi, eax
test edi, edi
jl 0x102d44a
test byte [esi + 0xec], 1
lea eax, [ebp - 4]
je 0x102d385
push 0
push eax
push dword [ebp - 8]
call fcn.0107c9fc
mov edi, eax
test edi, edi
jl 0x102d44a
lea edi, [esi + 0x11c]
cmp dword [edi], 0
jne 0x102d303
push 0x1002530
push 0x1f82
push 0x1002460
call fcn.0107b644
mov edi, dword [edi]
push dword [ebp - 4]
mov eax, dword [edi]
push edi
call dword [eax + 0x44]
mov edi, eax
test edi, edi
jl 0x102d44a
test byte [esi + 0xec], 1
jne 0x102d3fd
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x102d3fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102d3f6
test byte [eax + 0x1c], 1
je 0x102d3f6
cmp byte [eax + 0x19], 2
jb 0x102d3f6
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push 0x10023f8
push 0x16a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x102d3f1
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010dfceb
mov edi, eax
test edi, edi
jl 0x102d44a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102d2e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x102d2e4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x102d3f6
test byte [eax + 0x1c], 1
je 0x102d3f6
cmp byte [eax + 0x19], 2
jb 0x102d3f6
push edi
push dword [ebp - 4]
push 0x10023f8
push 0x169
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
test edi, edi
jmp 0x102d286
test byte [esi + 0xec], 0x80
je 0x102d44a
cmp byte [esi + 0xbc], 0
je 0x102d44a
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x102d42e
mov byte [eax + 4], bl
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax], 0x10028ac
mov ebx, eax
push dword [ebp - 8]
mov ecx, ebx
call fcn.0101a853
mov edi, eax
test edi, edi
jl 0x102d44a
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029ca7
mov eax, dword [0x111024c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x102d466
push dword [ebp - 4]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 8], ebx
je 0x102d475
push dword [ebp - 8]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0xc], ebx
je 0x102d484
push dword [ebp - 0xc]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], ebx
je 0x102d493
push dword [ebp - 0x10]
call esi
mov eax, dword [0x111024c]
cmp edi, ebx
jge 0x102d4c0
cmp eax, 0x111024c
je 0x102d4c0
test byte [eax + 0x1c], 1
je 0x102d4c0
cmp byte [eax + 0x19], 2
jb 0x102d4c0
push edi
push 0x10023f8
push 0x16b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret