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

Disassembly:
push 0xffffffffffffffff
push 0x1011c9f7
mov eax, dword fs:[0]
push eax
sub esp, 0x5b0
mov eax, dword [0x1016b2e8]
xor eax, esp
mov dword [esp + 0x5a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1016b2e8]
xor eax, esp
push eax
lea eax, [esp + 0x5c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5d4]
mov esi, edx
push esi
mov dword [esp + 0x24], eax
mov edi, ecx
mov dword [esp + 0x5c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
jne 0x10023eb3
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x206
lea edx, [esp + 0x3ba]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3c0], cx
call fcn.10068c80
add esp, 0xc
push esi
lea eax, [esp + 0x3b8]
push 0x104
push eax
call fcn.1006390a
add esp, 0xc
lea ecx, [esp + 0x3b4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor edx, edx
lea eax, [esp + 0x3b4]
mov word [esp + 0x194], dx
mov dword [esp + 0x1a8], 7
mov dword [esp + 0x1a4], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10023f20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3b8]
lea esi, [esp + 0x194]
call fcn.10001780
mov dword [esp + 0x5cc], ebx
mov dword [esp + 0x44], 0x10028bc0
mov dword [esp + 0x48], 0x10028bb0
mov dword [esp + 0x3c], 0x10028bc0
mov dword [esp + 0x40], 0x10028bb0
push edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x48]
lea esi, [esp + 0xd0]
mov byte [esp + 0x5d0], 1
call fcn.10023ca0
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x10023ff4
mov esi, eax
mov byte [esp + 0x5cc], 0
mov eax, dword [esp + 0xe8]
cmp eax, ebx
je 0x10023fb7
push eax
lea eax, [esp + 0xf4]
push eax
call dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x17c], ebx
je 0x10023fd3
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x104]
call fcn.100260a0
cmp dword [esp + 0x1a8], 8
jb 0x10023fed
mov ecx, dword [esp + 0x194]
push ecx
call fcn.100618cf
add esp, 4
mov eax, esi
jmp 0x10024733
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x108]
push eax
lea edx, [esp + 0x100]
lea ecx, [esp + 0xf8]
call fcn.10028460
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10024033
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x104]
call fcn.100260a0
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x100240a2
mov byte [esp + 0x5cc], 0
mov eax, dword [esp + 0xe8]
cmp eax, ebx
je 0x10024061
push eax
lea ecx, [esp + 0xf4]
push ecx
call dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x17c], ebx
je 0x1002407d
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x104]
call fcn.100260a0
cmp dword [esp + 0x1a8], 8
jb 0x10023fed
mov edx, dword [esp + 0x194]
push edx
call fcn.100618cf
add esp, 4
mov eax, esi
jmp 0x10024733
mov edi, dword [esp + 0x108]
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
cmp edi, ebx
jbe 0x100240eb
mov esi, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov ebx, dword [esp + 0x120]
lea esp, [esp]
movzx eax, byte [ecx + ebp]
add eax, dword [ebx + ecx*4]
inc ecx
mov edx, dword [esi + eax*8]
mov eax, dword [esi + eax*8 + 4]
add dword [esp + 0x2c], edx
mov dword [esp + 0x50], eax
cmp ecx, edi
jb 0x100240d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.10024b50
xor edi, edi
push 0x206
mov byte [esp + 0x5d0], 2
lea ecx, [esp + 0x1b2]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x6c], edi
mov word [esp + 0x1b8], ax
call fcn.10068c80
mov eax, dword [esp + 0x1a0]
add esp, 0xc
cmp dword [esp + 0x1a8], 8
jae 0x1002414c
lea eax, [esp + 0x194]
mov esi, dword [esp + 0x1a4]
add esi, esi
push esi
push eax
lea edx, [esp + 0x1b4]
push edx
call fcn.100683a0
add esp, 0xc
lea esi, [esp + esi + 0x1ac]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x144], edi
jbe 0x100245fe
jmp 0x10024194
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x178]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ecx + edi*4 + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
sub ecx, eax
test esi, esi
je 0x100241cf
mov edx, dword [esp + 0x17c]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x100241cf
mov eax, esi
sub edx, esi
mov bx, word [edx + eax]
mov word [eax], bx
add eax, 2
sub ecx, 1
jne 0x100241c0
push 0x2f
push esi
call fcn.100656db
add esp, 8
test eax, eax
je 0x100241f7
mov edi, edi
mov ecx, 0x5c
push 0x2f
push eax
mov word [eax], cx
call fcn.100656db
add esp, 8
test eax, eax
jne 0x100241e0
mov edx, dword [esp + 0x14c]
mov ecx, edi
and ecx, 7
mov ebx, 0x80
sar ebx, cl
mov eax, edi
shr eax, 3
mov dword [esp + 0x34], eax
test byte [edx + eax], bl
je 0x100242e0
push 0
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
lea eax, [esp + 0x1ac]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10024256
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1b0]
lea esi, [esp + 0xb4]
call fcn.10001780
mov edx, esi
push edx
mov byte [esp + 0x5d0], 3
call fcn.10023be0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
push eax
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x64], edi
call fcn.10024d70
mov byte [esp + 0x5cc], 2
cmp dword [esp + 0xc8], 8
jb 0x100245ac
mov eax, dword [esp + 0xb4]
push eax
call fcn.100618cf
add esp, 4
jmp 0x100245ac
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xe8]
xor esi, esi
push edi
push edx
lea eax, [esp + 0x128]
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], esi
call fcn.10028810
add esp, 0x24
mov dword [esp + 0x14], eax
cmp eax, esi
jne 0x100245fe
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [esp + 0x1c4]
push eax
mov byte [esp + 0x5e8], 4
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, 0xffffffff
je 0x1002436e
xor ecx, ecx
jmp 0x10024372
call edi
mov ecx, eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x10], 0
mov dword [esp + 0x14], ecx
je 0x1002442a
test ecx, ecx
mov ecx, dword [eax + 0x10]
jne 0x100243a3
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 0
push 0
lea eax, [esp + 0x1b4]
push eax
call edx
jmp 0x1002442a
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
push 1
lea edx, [esp + 0x1b4]
push edx
call eax
cmp eax, 1
jne 0x100243f6
push 0
push 0x80
push 2
push 0
push eax
push 0x40000000
lea ecx, [esp + 0x1c4]
push ecx
call ebp
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, 0xffffffff
je 0x100243ee
mov dword [esp + 0x14], 0
jmp 0x10024435
call edi
mov dword [esp + 0x14], eax
jmp 0x1002442a
cmp eax, 2
jne 0x10024421
mov byte [esp + 0x5cc], al
cmp esi, 0xffffffff
je 0x100245ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100245ac
call edi
jmp 0x100245ac
cmp eax, 3
je 0x100245c4
cmp dword [esp + 0x14], 0
jne 0x100245c4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
add eax, edx
push ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x20], ebp
call fcn.10028a50
add esp, 4
test eax, eax
jne 0x10024469
mov eax, dword [esp + 0x1c]
sub eax, ebp
neg eax
sbb eax, eax
and eax, 0xb
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100245e0
mov eax, dword [esp + 0x20]
add dword [esp + 0x28], ebp
cmp dword [eax + 0x10], 0
je 0x1002449c
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x28]
push eax
push 2
lea eax, [esp + 0x1b4]
push eax
call edx
mov edi, dword [esp + 0x160]
mov ebp, dword [esp + 0x34]
xor ecx, ecx
xor eax, eax
test edi, edi
je 0x100244c2
test byte [edi + ebp], bl
je 0x100244c2
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x18]
lea ecx, [ecx + edx*8]
mov edi, dword [esp + 0x168]
test edi, edi
je 0x100244e0
test byte [edi + ebp], bl
je 0x100244e0
mov eax, dword [esp + 0x16c]
mov edx, dword [esp + 0x18]
lea eax, [eax + edx*8]
test ecx, ecx
jne 0x100244e8
test eax, eax
je 0x100244f3
push ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x1002450e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1002450b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10024510
or esi, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100245e0
push eax
lea eax, [esp + 0x1b0]
push eax
call fcn.1006578a
add esp, 8
test eax, eax
jne 0x10024555
lea ecx, [esp + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10024555
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x1b0]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x158]
test eax, eax
je 0x1002458e
test byte [eax + ebp], bl
je 0x1002458e
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
test eax, 0xf0000000
je 0x1002457f
and eax, 0x7fff
push eax
lea edx, [esp + 0x3b8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [esp + 0x5cc], 2
cmp esi, 0xffffffff
je 0x100245ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100245ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x144]
jb 0x10024190
jmp 0x100245fe
mov byte [esp + 0x5cc], 2
cmp esi, 0xffffffff
je 0x100245fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100245fe
call edi
jmp 0x100245fe
mov byte [esp + 0x5cc], 2
cmp esi, 0xffffffff
je 0x100245fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100245fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp dword [esp + 0x84], ebx
jbe 0x10024624
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.100247b0
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
mov edi, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x1002464d
push eax
call fcn.100618cf
add esp, 4
mov edx, dword [esp + 0x88]
push edx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call fcn.100618cf
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x84]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x84]
add esp, 4
mov dword [esp + 0x84], ebx
cmp eax, ecx
je 0x100246b8
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.100618cf
mov ecx, dword [esp + 0x84]
add esp, 4
mov eax, esi
cmp esi, ecx
jne 0x100246a0
push ecx
call fcn.100618cf
mov eax, dword [esp + 0x70]
add esp, 4
push eax
mov dword [esp + 0x84], ebx
call fcn.100618cf
mov byte [esp + 0x5d0], 0
mov eax, dword [esp + 0xec]
add esp, 4
cmp eax, ebx
je 0x100246fb
push eax
lea ecx, [esp + 0xf4]
push ecx
call dword [esp + 0xfc]
add esp, 8
cmp dword [esp + 0x17c], ebx
je 0x10024717
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x104]
call fcn.100260a0
cmp dword [esp + 0x1a8], 8
jb 0x10024731
mov edx, dword [esp + 0x194]
push edx
call fcn.100618cf
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x5c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.10061731
add esp, 0x5bc
ret 4