Function at 0x100340f0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100703a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x100871e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp + 8]
call fcn.10002f60
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0xffffffff
je 0x10034159
mov ecx, dword [ebp - 0x290]
and ecx, 0x10
jne 0x10034189
mov byte [ebp - 0x263], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x2b8], edx
mov ecx, dword [ebp - 0x2b8]
call fcn.10003fb0
mov al, byte [ebp - 0x263]
jmp 0x10034418
push 0x1007cd50
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.1000a100
add esp, 0xc
mov dword [ebp - 0x2b0], eax
mov edx, dword [ebp - 0x2b0]
mov eax, dword [edx]
mov dword [ebp - 0x2a0], eax
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x2b4]
sub eax, 0x10
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
call fcn.10003fb0
cmp dword [ebp - 0x27c], 0xffffffff
je 0x1003438a
mov dword [ebp - 0x270], 0x1007cd54
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
mov ax, word [edx]
mov word [ebp - 0x27e], ax
mov ecx, dword [ebp - 0x270]
cmp ax, word [ecx]
jne 0x10034272
cmp word [ebp - 0x27e], 0
je 0x10034266
mov edx, dword [ebp - 0x268]
mov ax, word [edx + 2]
mov word [ebp - 0x278], ax
mov ecx, dword [ebp - 0x270]
cmp ax, word [ecx + 2]
jne 0x10034272
add dword [ebp - 0x268], 4
add dword [ebp - 0x270], 4
cmp word [ebp - 0x278], 0
jne 0x1003420c
mov dword [ebp - 0x28c], 0
jmp 0x1003427d
sbb edx, edx
or edx, 1
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2bc], 0
je 0x1003435f
mov dword [ebp - 0x274], 0x1007cd58
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
mov ax, word [edx]
mov word [ebp - 0x280], ax
mov ecx, dword [ebp - 0x274]
cmp ax, word [ecx]
jne 0x10034312
cmp word [ebp - 0x280], 0
je 0x10034306
mov edx, dword [ebp - 0x26c]
mov ax, word [edx + 2]
mov word [ebp - 0x276], ax
mov ecx, dword [ebp - 0x274]
cmp ax, word [ecx + 2]
jne 0x10034312
add dword [ebp - 0x26c], 4
add dword [ebp - 0x274], 4
cmp word [ebp - 0x276], 0
jne 0x100342ac
mov dword [ebp - 0x284], 0
jmp 0x1003431d
sbb edx, edx
or edx, 1
mov dword [ebp - 0x284], edx
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
je 0x1003435f
push 5
push ecx
mov ecx, esp
mov dword [ebp - 0x2c0], esp
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
push ecx
call fcn.1000a100
add esp, 0xc
mov dword [ebp - 0x2c4], eax
call fcn.10030dd0
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100341f6
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100343b7
mov byte [ebp - 0x262], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0x29c], ecx
mov ecx, dword [ebp - 0x29c]
call fcn.10003fb0
mov al, byte [ebp - 0x262]
jmp 0x10034418
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
jne 0x100343de
mov dword [ebp - 0x288], 1
jmp 0x100343e8
mov dword [ebp - 0x288], 0
mov cl, byte [ebp - 0x288]
mov byte [ebp - 0x261], cl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0x2ac], edx
mov ecx, dword [ebp - 0x2ac]
call fcn.10003fb0
mov al, byte [ebp - 0x261]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100422b3
mov esp, ebp
pop ebp
ret