Function at 0x10002590
Capabilities:
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003231c
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x15d0
call fcn.10031f60
mov eax, dword [0x1004200c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x15c4], esi
lea eax, [esi + 0x3c]
push eax
mov dword [ebp - 0x15e0], eax
call fcn.1000513c
add esp, 4
test eax, eax
je 0x100025fc
push eax
call fcn.10004c28
add esp, 4
mov byte [ebp - 0x15dc], 1
push 0x3fc
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0x1418]
push 0x3fc
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0x1018]
push 0x3fc
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0x818]
push 0x3fc
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea eax, [ebp - 0xc18]
push 0x3fc
push 0
push eax
call fcn.1001edb0
add esp, 0xc
lea edi, [esi + 0x45c]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x15d8], edi
push edi
push 0x1003bcb8
push 0x3fc
push eax
call fcn.10001c40
push edi
push str._s.log
lea eax, [ebp - 0x1418]
push 0x3fc
push eax
call fcn.10001c40
push edi
push 0x1003bc3c
lea eax, [ebp - 0x818]
push 0x3fc
push eax
call fcn.10001c40
lea ecx, [ebp - 0x818]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100026d5
sub ecx, edx
js 0x100026fc
mov al, byte [ebp + ecx - 0x818]
cmp al, 0x5c
je 0x100029f6
cmp al, 0x2f
je 0x100029f6
sub ecx, 1
jns 0x100026e0
lea eax, [ebp - 0x15b8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x1418]
movlpd qword [ebp - 0x15d0], xmm0
push eax
call fcn.10020720
add esp, 8
mov dword [ebp - 0x15d4], eax
cmp eax, 0xffffffff
je 0x10002b7a
mov ecx, dword [ebp - 0x15cc]
mov edi, dword [ebp - 0x15d0]
mov dword [ebp - 0x15c0], ecx
mov dword [ebp - 0x15cc], edi
nop dword [eax]
nop dword [eax + eax]
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x1420], 0
mov dword [ebp - 0x141c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1430], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002774
sub ecx, edx
lea eax, [ebp - 0x818]
push ecx
push eax
lea ecx, [ebp - 0x1430]
call fcn.10001590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1594]
mov dword [ebp - 0x1450], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x144c], 0xf
mov byte [ebp - 0x1460], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100027b8
sub ecx, edx
lea eax, [ebp - 0x1594]
push ecx
push eax
lea ecx, [ebp - 0x1460]
call fcn.10001590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x1438], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1434], 0xf
mov byte [ebp - 0x1448], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002800
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x1448]
call fcn.10001590
lea eax, [ebp - 0x1460]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1430]
lea ecx, [ebp - 0x1478]
call fcn.10003090
mov esi, eax
add esp, 4
lea eax, [ebp - 0x1430]
cmp eax, esi
je 0x10002876
mov ecx, eax
call fcn.100014f0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x1430], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1420], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp - 0x1464]
cmp eax, 0x10
jb 0x100028c2
mov ecx, dword [ebp - 0x1478]
inc eax
cmp eax, 0x1000
jb 0x100028b9
test cl, 0x1f
jne 0x10002b75
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10002b75
sub ecx, eax
cmp ecx, 4
jb 0x10002b75
cmp ecx, 0x23
ja 0x10002b75
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
push ecx
lea edx, [ebp - 0x1448]
lea ecx, [ebp - 0x1478]
call fcn.10003170
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x100028e1
mov ecx, dword [ecx]
cmp dword [ebp - 0x141c], 0x10
lea eax, [ebp - 0x1430]
push ecx
cmovae eax, dword [ebp - 0x1430]
push eax
call fcn.1001df90
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1464]
setne byte [ebp - 0x15b9]
cmp eax, 0x10
jb 0x10002954
mov ecx, dword [ebp - 0x1478]
inc eax
cmp eax, 0x1000
jb 0x1000294b
test cl, 0x1f
jne 0x10002b75
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10002b75
sub ecx, eax
cmp ecx, 4
jb 0x10002b75
cmp ecx, 0x23
ja 0x10002b75
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
cmp byte [ebp - 0x15b9], 0
je 0x10002a11
cmp dword [ebp - 0x141c], 0x10
lea ecx, [ebp - 0x1490]
lea eax, [ebp - 0x1430]
cmovae eax, dword [ebp - 0x1430]
push ecx
push eax
call fcn.10020f57
add esp, 8
test eax, eax
jne 0x100029e8
mov ecx, dword [ebp - 0x15c0]
mov eax, edi
or eax, ecx
je 0x100029a7
cmp dword [ebp - 0x146c], ecx
jg 0x100029e8
jl 0x100029a7
cmp dword [ebp - 0x1470], edi
jae 0x100029e8
cmp dword [ebp - 0x141c], 0x10
lea eax, [ebp - 0x1430]
cmovae eax, dword [ebp - 0x1430]
push eax
lea eax, [ebp - 0xc18]
push 0x3fc
push eax
call fcn.10001c40
mov eax, dword [ebp - 0x146c]
add esp, 0xc
mov edi, dword [ebp - 0x1470]
mov dword [ebp - 0x15c0], eax
mov dword [ebp - 0x15cc], edi
mov esi, dword [ebp - 0x15c4]
inc dword [esi + 0x850]
jmp 0x10002a17
inc ecx
cmp ecx, 0x3fc
jae 0x10002a0c
mov byte [ebp + ecx - 0x818], 0
jmp 0x100026fc
call fcn.10005bc4
mov esi, dword [ebp - 0x15c4]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1434]
cmp eax, 0x10
jb 0x10002a67
mov ecx, dword [ebp - 0x1448]
inc eax
cmp eax, 0x1000
jb 0x10002a5e
test cl, 0x1f
jne 0x10002b75
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10002b75
sub ecx, eax
cmp ecx, 4
jb 0x10002b75
cmp ecx, 0x23
ja 0x10002b75
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x144c]
mov dword [ebp - 0x1438], 0
mov dword [ebp - 0x1434], 0xf
mov byte [ebp - 0x1448], 0
cmp eax, 0x10
jb 0x10002ad2
mov ecx, dword [ebp - 0x1460]
inc eax
cmp eax, 0x1000
jb 0x10002ac9
test cl, 0x1f
jne 0x10002b75
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10002b75
sub ecx, eax
cmp ecx, 4
jb 0x10002b75
cmp ecx, 0x23
ja 0x10002b75
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x141c]
mov dword [ebp - 0x1450], 0
mov dword [ebp - 0x144c], 0xf
mov byte [ebp - 0x1460], 0
cmp eax, 0x10
jb 0x10002b2d
mov ecx, dword [ebp - 0x1430]
inc eax
cmp eax, 0x1000
jb 0x10002b24
test cl, 0x1f
jne 0x10002b75
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10002b75
sub ecx, eax
cmp ecx, 4
jb 0x10002b75
cmp ecx, 0x23
ja 0x10002b75
mov ecx, eax
push ecx
call fcn.10005a9c
add esp, 4
lea eax, [ebp - 0x15b8]
mov dword [ebp - 0x1420], 0
push eax
push dword [ebp - 0x15d4]
mov dword [ebp - 0x141c], 0xf
mov byte [ebp - 0x1430], 0
call fcn.1002072b
add esp, 8
test eax, eax
je 0x10002750
push dword [ebp - 0x15d4]
call fcn.100206fa
add esp, 4
jmp 0x10002b92
call fcn.100202b6
mov eax, dword [ebp - 0x15cc]
mov dword [ebp - 0x15c0], eax
mov eax, dword [ebp - 0x15d0]
mov dword [ebp - 0x15cc], eax
cmp byte [esi + 0x858], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x10002c39
lea eax, [ebp - 0x15b8]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10020720
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x10002c2c
mov eax, dword [ebp - 0x15c4]
mov ecx, dword [eax + 0x850]
cmp ecx, dword [eax + 0x854]
mov eax, dword [ebx + 0x10]
jge 0x10002bdc
push ecx
jmp 0x10002bde
push 0
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
push dword [ebp - 0x15d8]
lea eax, [ebp - 0x1018]
push str._s.log__04d__02d__02d__d
push 0x3fc
push eax
call fcn.10001c40
add esp, 0x20
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x418]
push eax
call edi
push esi
call fcn.100206fa
add esp, 4
mov esi, dword [ebp - 0x15c4]
mov byte [esi + 0x858], 0
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x10002d04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x15cc]
or eax, dword [ebp - 0x15c0]
je 0x10002cba
mov eax, dword [esi + 0x850]
cmp eax, dword [esi + 0x854]
jl 0x10002cba
lea eax, [ebp - 0xc18]
push eax
call edi
lea ecx, [ebp - 0xc18]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002c80
sub ecx, edx
lea eax, [ebp - 0xc18]
add eax, ecx
cmp byte [eax - 2], 0x5f
je 0x10002cad
movsx ecx, byte [eax - 1]
movsx eax, byte [eax - 2]
lea eax, [eax + eax*4]
lea eax, [eax - 0x108]
lea eax, [ecx + eax*2]
jmp 0x10002cb4
movsx eax, byte [eax - 1]
sub eax, 0x30
mov dword [esi + 0x850], eax
push dword [esi + 0x850]
lea eax, [esi + 0x45c]
mov dword [esi + 0x6c], 0xffffffff
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push eax
push str._s.log__04d__02d__02d__d
lea eax, [ebp - 0x1018]
push 0x3fc
push eax
call fcn.10001c40
add esp, 0x20
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [esi + 0x850], 0
lea eax, [esi + 0x3c]
mov dword [ebp - 4], 4
push eax
call fcn.10005161
add esp, 4
test eax, eax
je 0x10002d2e
push eax
call fcn.10004c28
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10005a58
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc