Function at 0x1001d680
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x1012b8b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [0x10194180]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x90], eax
mov ebx, ecx
mov byte [esp + 0x2c], 0
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call fcn.10001520
mov dword [esp + 0x9c], 0
push 0
lea ecx, [esp + 0x14]
call fcn.10001520
mov byte [esp + 0x9c], 1
push 0
lea ecx, [esp + 0x18]
call fcn.10001520
mov byte [esp + 0x9c], 2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.1006e3b0
mov eax, dword [ebx + 0x10]
push 0x101387b4
push eax
call fcn.10057566
mov edi, eax
add esp, 8
test edi, edi
je 0x1001d952
push edi
lea ecx, [esp + 0x30]
push 0x64
push ecx
call fcn.10057bc5
add esp, 0xc
test eax, eax
je 0x1001d815
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x1e]
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str.__02d._02d._02d__n
push edx
call fcn.10008370
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea esi, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1001d795
test cl, cl
je 0x1001d791
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1001d795
add eax, 2
add esi, 2
test cl, cl
jne 0x1001d771
xor eax, eax
jmp 0x1001d79a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001d815
push edi
call fcn.10057448
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
call dword [eax + 0x14]
mov byte [esp + 0x9c], 1
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jg 0x1001d7d6
push esi
call fcn.100569b3
add esp, 4
mov byte [esp + 0x9c], 0
mov esi, dword [esp + 0x10]
add esi, 0xfffffff8
lea edx, [esi + 4]
push edx
call edi
test eax, eax
jg 0x1001d7f8
push esi
call fcn.100569b3
add esp, 4
mov dword [esp + 0x9c], 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call edi
jmp 0x1001da07
push edi
call fcn.10057448
lea edi, [ebx + 0xc]
lea ecx, [esp + 0x14]
add esp, 4
cmp edi, ecx
je 0x1001d85d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001d84b
lea esi, [eax - 8]
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d84b
push esi
call fcn.100569b3
add esp, 4
mov esi, dword [edi]
lea eax, [esi - 4]
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1001d861
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
dec ecx
push ecx
push esi
lea edx, [esp + 0x18]
push str._s__d.ini
push edx
call fcn.10008370
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [ebx + 0x14]
sub ebp, 2
mov esi, dword [esp + 0x14]
js 0x1001d95a
lea ecx, [esp + 0x10]
lea eax, [ebx + 0xc]
cmp eax, ecx
je 0x1001d8ce
test edi, edi
je 0x1001d8bd
add edi, 0xfffffff8
lea edx, [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d8bd
push edi
call fcn.100569b3
add esp, 4
mov edi, dword [ebx + 0xc]
lea eax, [edi - 4]
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
push edi
lea ecx, [esp + 0x18]
push str._s__d.ini
push ecx
call fcn.10008370
lea edx, [esp + 0x24]
lea edi, [ebx + 0xc]
add esp, 0x10
cmp edi, edx
je 0x1001d91b
test esi, esi
je 0x1001d90b
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001d90b
push esi
call fcn.100569b3
add esp, 4
mov esi, dword [edi]
lea ecx, [esi - 4]
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [ebp + 1]
push edx
push esi
lea eax, [esp + 0x1c]
push str._s__d.ini
push eax
call fcn.10008370
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
dec ebp
jns 0x1001d894
jmp 0x1001d95a
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
push 0x10138790
push eax
call fcn.10057566
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1001d9a6
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.__02d._02d._02d__n
push ecx
call fcn.10008370
mov edx, dword [esp + 0x2c]
push ebp
push edx
call fcn.10057499
push ebp
call fcn.10057448
add esp, 0x20
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov byte [esp + 0x9c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff8
lea ecx, [esi + 4]
push ecx
call ebx
test eax, eax
jg 0x1001d9d1
push esi
call fcn.100569b3
add esp, 4
mov byte [esp + 0x9c], 0
add edi, 0xfffffff8
lea edx, [edi + 4]
push edx
call ebx
test eax, eax
jg 0x1001d9ef
push edi
call fcn.100569b3
add esp, 4
mov dword [esp + 0x9c], 0xffffffff
mov esi, dword [esp + 0x18]
add esi, 0xfffffff8
lea eax, [esi + 4]
push eax
call ebx
test eax, eax
jg 0x1001da14
push esi
call fcn.100569b3
add esp, 4
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x84]
pop ebx
call fcn.100571c6
add esp, 0x90
ret