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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x130], ecx
mov ecx, dword [0x1007cd18]
push ebx
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1007d548]
mov edi, dword [ebp + 8]
cmp eax, dword [ecx + 4]
jle 0x1001482a
push 0x1007d548
call fcn.1002237c
add esp, 4
cmp dword [0x1007d548], 0xffffffff
jne 0x1001482a
push 2
push 0x100752b8
mov ecx, 0x1007d550
mov dword [0x1007d550], 0
mov dword [0x1007d560], 0
mov dword [0x1007d564], 7
call fcn.10010480
push 0x100467f0
call fcn.100227bd
add esp, 4
push 0x1007d548
call fcn.10022332
add esp, 4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10014834
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100149f2
cmp dword [0x1007d564], 8
mov esi, 0x1007d550
mov eax, dword [edi + 0x10]
mov ebx, edi
cmovae esi, dword [0x1007d550]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x12c], esi
jb 0x1001486a
mov ebx, dword [edi]
cmp dword [0x1007d560], 0
je 0x100149e1
test eax, eax
je 0x100149e1
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.10023f30
mov eax, dword [0x1007d560]
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x128], 0x100
lea edx, [esi + eax*2]
cmp esi, edx
je 0x100148ce
nop dword [eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x10014903
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x124], 1
cmp ecx, edx
jne 0x100148b0
mov edx, dword [edi + 0x10]
or ecx, 0xffffffff
mov esi, 0x100
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [ebx + ecx*2]
movzx eax, word [ecx]
cmp ax, si
jae 0x100148f6
cmp byte [ebp + eax - 0x124], 0
jne 0x10014965
cmp ecx, ebx
je 0x100149e1
sub ecx, 2
jmp 0x100148e4
mov eax, dword [edi + 0x10]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, word [esi]
mov dword [ebp - 0x128], eax
lea ecx, [ebx + ecx*2]
nop dword [eax + eax]
mov eax, dword [0x1007d560]
mov edx, esi
movzx esi, word [ecx]
cmp word [ebp - 0x128], si
je 0x1001495c
cmp eax, 1
je 0x10014945
add edx, 2
dec eax
cmp word [edx], si
jne 0x10014933
test edx, edx
jne 0x1001495c
cmp ecx, ebx
je 0x10014954
mov esi, dword [ebp - 0x12c]
sub ecx, 2
jmp 0x10014920
mov edx, dword [edi + 0x10]
or ecx, 0xffffffff
jmp 0x10014969
mov edx, dword [edi + 0x10]
sub ecx, ebx
sar ecx, 1
jmp 0x10014969
sub ecx, ebx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x100149e1
cmp edx, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov eax, edi
cmovb ecx, edx
mov dword [ebp - 0xc], 7
cmp dword [edi + 0x14], 8
jb 0x10014992
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.10010480
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x20]
push eax
call fcn.10014790
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x100149e1
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100149d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014a05
push edx
push ecx
call fcn.10022487
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x100149e9
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002225a
mov esp, ebp
pop ebp
ret 4
call fcn.1002b828
int3