Function at 0x10036ed0
Capabilities:
Check if file exists
Create directory
Get file attributes

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 0x100d16d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x101140c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10116974]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x12c], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10117ad8]
cmp eax, dword [ecx + 4]
jg 0x10037157
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10036f4a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10037137
cmp dword [0x10114b8c], 7
mov eax, 0x10114b78
mov edi, esi
mov dword [ebp - 0x124], esi
cmova eax, dword [0x10114b78]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x11c], eax
jbe 0x10036f92
mov edi, dword [esi]
mov dword [ebp - 0x124], edi
cmp dword [0x10114b88], 0
je 0x100370be
test eax, eax
je 0x100370be
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10073590
mov eax, dword [ebp - 0x120]
add esp, 0xc
mov edx, dword [0x10114b88]
mov ecx, eax
mov dword [ebp - 0x128], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x10036ffe
nop dword [eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x10037036
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x118], 1
cmp ecx, edx
jne 0x10036fe0
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x128]
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x10037029
cmp byte [ebp + eax - 0x118], 0
jne 0x100370b8
cmp ecx, edi
je 0x100370be
sub ecx, 2
jmp 0x10037013
mov eax, dword [ebp - 0x11c]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x120]
movzx edx, word [eax]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0x11c], edx
nop word [eax + eax]
movzx edi, word [ecx]
mov esi, eax
mov edx, dword [0x10114b88]
cmp word [ebp - 0x11c], di
je 0x100370a8
cmp edx, 1
je 0x1003708a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10037074
test esi, esi
jne 0x100370a8
cmp ecx, dword [ebp - 0x124]
je 0x1003709d
mov eax, dword [ebp - 0x120]
sub ecx, 2
jmp 0x10037060
mov esi, dword [ebp - 0x12c]
or ecx, 0xffffffff
jmp 0x100370c1
sub ecx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x12c]
sar ecx, 1
jmp 0x100370c1
sub ecx, edi
sar ecx, 1
jmp 0x100370c1
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x10037126
cmp dword [esi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x148], xmm0
cmovb ecx, dword [esi + 0x10]
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
jbe 0x100370f5
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.10032800
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 4], 0
call fcn.10036ed0
lea ecx, [ebp - 0x148]
call fcn.1002fe70
cmp dword [esi + 0x14], 7
jbe 0x1003712e
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
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.10070cea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x10117ad8
call fcn.10070d79
add esp, 4
cmp dword [0x10117ad8], 0xffffffff
jne 0x10036f40
push 0x100d63b0
call fcn.100713aa
add esp, 4
push 0x10117ad8
call fcn.10070d28
add esp, 4
jmp 0x10036f40