Function at 0x102d0e6
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 0x102d11d
push 0x1002bc8
push 0x1f41
push 0x1002460
call fcn.0107b4be
test byte [esi + 0xec], 4
je 0x102d1c4
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [esi + 0x140]
call fcn.010dfdd9
mov edi, eax
cmp edi, ebx
jl 0x102d371
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.010d4f33
mov edi, eax
cmp edi, ebx
jl 0x102d371
cmp dword [ebp - 0xc], ebx
je 0x102d1c4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102d1c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102d1ab
test byte [eax + 0x1c], 1
je 0x102d1ab
cmp byte [eax + 0x19], 2
jb 0x102d1ab
push edi
push dword [ebp - 0xc]
push 0x10023f8
push 0x169
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
cmp edi, ebx
jle 0x102d376
and edi, 0xffff
or edi, 0x80070000
jmp 0x102d376
lea eax, [ebp - 8]
push eax
push 0
lea ebx, [esi + 0xd0]
push ebx
push dword [esi + 0x140]
call fcn.010dfdd9
mov edi, eax
test edi, edi
jl 0x102d371
test byte [esi + 0xec], 1
lea eax, [ebp - 4]
je 0x102d2ac
push 0
push eax
push dword [ebp - 8]
call fcn.0107c871
mov edi, eax
test edi, edi
jl 0x102d371
lea edi, [esi + 0x11c]
cmp dword [edi], 0
jne 0x102d22a
push 0x1002530
push 0x1f8c
push 0x1002460
call fcn.0107b4be
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 0x102d371
test byte [esi + 0xec], 1
jne 0x102d324
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x102d324
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102d31d
test byte [eax + 0x1c], 1
je 0x102d31d
cmp byte [eax + 0x19], 2
jb 0x102d31d
push edi
push dword [ebp - 8]
push dword [ebp - 4]
push 0x10023f8
push 0x16b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
jmp 0x102d318
push eax
push 1
push ebx
push dword [esi + 0x140]
call fcn.010dfdd9
mov edi, eax
test edi, edi
jl 0x102d371
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102d20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x102d20b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x102d31d
test byte [eax + 0x1c], 1
je 0x102d31d
cmp byte [eax + 0x19], 2
jb 0x102d31d
push edi
push dword [ebp - 4]
push 0x10023f8
push 0x16a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
test edi, edi
jmp 0x102d1ad
test byte [esi + 0xec], 0x80
je 0x102d371
cmp byte [esi + 0xbc], 0
je 0x102d371
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x102d355
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.0101a945
mov edi, eax
test edi, edi
jl 0x102d371
push ebx
lea ecx, [esi + 0x1e0]
call fcn.01029c6b
mov eax, dword [0x111124c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x102d38d
push dword [ebp - 4]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 8], ebx
je 0x102d39c
push dword [ebp - 8]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 0xc], ebx
je 0x102d3ab
push dword [ebp - 0xc]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 0x10], ebx
je 0x102d3ba
push dword [ebp - 0x10]
call esi
mov eax, dword [0x111124c]
cmp edi, ebx
jge 0x102d3e7
cmp eax, 0x111124c
je 0x102d3e7
test byte [eax + 0x1c], 1
je 0x102d3e7
cmp byte [eax + 0x19], 2
jb 0x102d3e7
push edi
push 0x10023f8
push 0x16c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret