Function at 0x10001fe0
Capabilities:
Check if file exists
Create directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100337c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x10048070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x370], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x8c]
mov dword [ebp - 0x368], eax
mov ecx, esi
mov eax, dword [esi]
mov dword [ebp - 0x394], esi
call dword [eax]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x94], 0
je 0x10002048
xor bl, bl
jmp 0x100026af
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push str.C:_sunlogin.debug
call edi
test eax, eax
jne 0x10002064
push str.C:_sunlogin_debug
call edi
test eax, eax
je 0x10002069
mov eax, 1
mov byte [ebx + 0x98], al
lea eax, [ebx + 0x18]
mov dword [ebx + 0xc], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x5c], eax
jb 0x10002084
mov eax, dword [eax]
push eax
call fcn.10019443
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [ebx + 0x9c], eax
mov edx, 0x1004147c
mov eax, dword [ebp - 0x368]
test eax, eax
cmovne edx, eax
cmp byte [edx], 0
jne 0x100020af
xor ecx, ecx
jmp 0x100020bd
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100020b4
sub ecx, edi
push ecx
lea edi, [ebx + 0x30]
push edx
mov ecx, edi
call fcn.10003fb0
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x9c], 1
jne 0x100020f4
mov bl, 1
jmp 0x10002698
cmp dword [edi + 0x14], 0x10
jb 0x100020fc
mov edi, dword [edi]
push 3
lea eax, [ebp - 0x4e0]
push edi
lea ecx, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], eax
call fcn.10003ca0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4e4]
cmp word [edx], 0
jne 0x1000212a
xor ecx, ecx
jmp 0x1000213f
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002130
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.10003de0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4e0]
mov eax, dword [ebp - 0x4e4]
cmp eax, ecx
je 0x10002169
push eax
call fcn.10018ca7
add esp, 4
push ecx
lea edx, [ebx + 0x18]
lea ecx, [ebp - 0x388]
call fcn.10004b30
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.10004c70
add esp, 4
push str..log
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xcc]
call fcn.10004c00
add esp, 4
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x100021c1
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100042e0
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x374]
cmp eax, 8
jb 0x100021f7
inc eax
lea ecx, [ebp - 0x388]
push eax
push dword [ebp - 0x388]
call fcn.100042e0
movq xmm0, qword [0x100414c0]
xor eax, eax
mov word [ebp - 0x388], ax
mov eax, dword [0x100414c8]
mov dword [ebp - 0x4c], eax
mov ax, word [0x100414cc]
push 0x32
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push 0
push eax
mov dword [ebp - 0x374], 7
mov dword [ebp - 0x378], 0
movq qword [ebp - 0x54], xmm0
call fcn.100167e0
add esp, 8
lea edx, [ebx + 0x18]
lea ecx, [ebp - 0x3dc]
call fcn.10004b30
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x3c4]
call fcn.10004c70
add esp, 4
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xb
push ecx
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.10004c00
add esp, 4
lea ecx, [ebp - 0x3c4]
call fcn.100038f0
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 0xe
call fcn.100038f0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x90]
push eax
movzx eax, word [ebp - 0x92]
push eax
movzx eax, word [ebp - 0x94]
push eax
movzx eax, word [ebp - 0x96]
push eax
movzx eax, word [ebp - 0x9a]
push eax
movzx eax, word [ebp - 0x9c]
push eax
lea eax, [ebp - 0x54]
push str.._d_02d_02d__02d_02d_02d.log
push eax
call fcn.100018b0
add esp, 0x1c
lea edx, [ebx + 0x18]
lea ecx, [ebp - 0x3ac]
call fcn.10004b30
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.10004c70
add esp, 4
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x10
push ecx
mov edx, eax
lea ecx, [ebp - 0x388]
call fcn.10004c00
add esp, 4
lea ecx, [ebp - 0xec]
push eax
call fcn.10003930
lea ecx, [ebp - 0x388]
call fcn.100038f0
lea ecx, [ebp - 0x74]
call fcn.100038f0
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 0xe
call fcn.100038f0
push ecx
lea edx, [ebx + 0x18]
lea ecx, [ebp - 0x388]
call fcn.10004b30
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
push ecx
mov edx, eax
lea ecx, [ebp - 0x3ac]
call fcn.10004c70
add esp, 4
push 0x1004150c
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x104]
call fcn.10004c00
add esp, 4
lea ecx, [ebp - 0x3ac]
call fcn.100038f0
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0x15
call fcn.100038f0
cmp dword [ebp - 0xf0], 8
lea ecx, [ebp - 0x364]
lea eax, [ebp - 0x104]
cmovae eax, dword [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea ecx, [ebp - 0xb4]
push 0x10041480
mov dword [ebp - 0x368], edi
call fcn.100039b0
xor ecx, ecx
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x36c], ecx
cmp edi, 0xffffffff
je 0x100025ef
mov esi, dword [ebp - 0x5c]
xor edi, edi
xor ebx, ebx
push ecx
mov edx, esi
lea ecx, [ebp - 0x388]
call fcn.10004b30
add esp, 4
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x17
push ecx
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.10004c00
add esp, 4
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x374]
cmp eax, 8
jb 0x1000245f
inc eax
lea ecx, [ebp - 0x388]
push eax
push dword [ebp - 0x388]
call fcn.100042e0
inc dword [ebp - 0x36c]
xor eax, eax
cmp dword [ebp - 0x60], 8
push 0
push 0x80
push 3
push 0
mov word [ebp - 0x388], ax
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
push 1
push 0
push eax
mov dword [ebp - 0x374], 7
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x390], eax
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0xd4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test di, di
jne 0x10002542
test bx, bx
jne 0x10002542
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
movzx edi, word [ebp - 0x58]
cmovae edx, dword [ebp - 0x74]
movzx ebx, word [ebp - 0x5c]
cmp word [edx], 0
jne 0x1000250e
xor eax, eax
lea ecx, [ebp - 0xb4]
push eax
push edx
call fcn.10003de0
jmp 0x10002573
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x38c], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002520
sub eax, dword [ebp - 0x38c]
lea ecx, [ebp - 0xb4]
sar eax, 1
push eax
push edx
call fcn.10003de0
jmp 0x10002573
mov ax, word [ebp - 0x58]
cmp di, ax
jne 0x1000254f
cmp bx, word [ebp - 0x5c]
jbe 0x1000256c
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xb4]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.100038a0
mov ax, word [ebp - 0x58]
movzx ebx, word [ebp - 0x5c]
movzx edi, ax
push dword [ebp - 0x390]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x60]
cmp eax, 8
jb 0x10002598
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.100042e0
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002414
push dword [ebp - 0x368]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x36c], 0x64
mov esi, dword [ebp - 0x394]
jl 0x100025e9
cmp dword [ebp - 0xa0], 8
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x370]
cmp dword [ebp - 0xd8], 8
lea eax, [ebp - 0xec]
push 0x10041514
cmovae eax, dword [ebp - 0xec]
push eax
call fcn.1001d51a
add esp, 8
mov dword [ebx + 0x94], eax
lea ecx, [ebp - 0xb4]
call fcn.100038f0
lea ecx, [ebp - 0x104]
call fcn.100038f0
lea ecx, [ebp - 0xec]
call fcn.100038f0
cmp dword [ebx + 0x94], 0
mov eax, dword [ebp - 0xb8]
setne bl
cmp eax, 8
jb 0x10002660
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.100042e0
xor eax, eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xbc], 0
cmp eax, 8
jb 0x10002698
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.100042e0
xor eax, eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], 0x1a
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001347d
mov esp, ebp
pop ebp
ret 0xc