Function at 0x410a9f
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x45363d
call fcn.0044ca14
sub esp, 0x94
push ebx
push esi
push edi
or ebx, 0xffffffff
push ebx
mov dword [ebp - 4], 3
mov esi, dword [ebp + 8]
xor edi, edi
push edi
lea eax, [ebp + 0xc]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x80], ecx
call fcn.004017f0
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 7
call fcn.00401b3f
mov byte [ebp - 4], 4
cmp dword [0x468714], edi
jne 0x410b01
push ebx
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.004017f0
jmp 0x410bf4
push str.SoDA_
lea eax, [ebp - 0x44]
push 0x468700
push eax
call fcn.00414e63
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.004017f0
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a6
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x410b41
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410ba4
push edi
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x44]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 0x10
jb 0x410b68
mov eax, dword [eax + 4]
jmp 0x410b6b
add eax, 4
push eax
push 0x4595c0
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004017a5
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x410b9c
lea eax, [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
push 0x458f9c
lea ecx, [ebp + 0xc]
call fcn.0040eb2e
push ebx
cmp eax, ebx
jne 0x410bc8
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.004065bf
jmp 0x410bf4
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040eae2
push ebx
push edi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.004065bf
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a6
push str.._finfo_
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e63
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call fcn.004017f0
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a6
push str.._fmap_
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e63
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.004017f0
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a6
push esi
call fcn.00413bac
test al, al
je 0x410e9f
push 0x4595d4
push 8
pop ebx
push ebx
push dword [0x468674]
call fcn.00429300
mov eax, dword [esi + 0xd0]
sub eax, dword [esi + 0xcc]
add esp, 0xc
test eax, 0xfffffffc
jne 0x410c9c
push str.unsche
jmp 0x410e7b
lea eax, [esi + 0x5c]
lea ecx, [ebp + 0x28]
call fcn.004030bb
test eax, eax
jne 0x410e76
lea eax, [esi + 0x94]
lea ecx, [ebp + 0x60]
call fcn.004030bb
test eax, eax
je 0x410cca
cmp dword [ebp + 0x74], edi
jne 0x410e76
mov eax, dword [esi + 0xb0]
cmp eax, dword [ebp + 0x7c]
jne 0x410e76
mov eax, dword [esi + 0xb4]
cmp eax, dword [ebp + 0x80]
jne 0x410e76
push 0x4595fc
push ebx
push dword [0x468674]
call fcn.00429300
add esp, 0xc
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e63
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jae 0x410d23
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push eax
call ebx
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x410e16
push 0x459624
push 8
push dword [0x468674]
call fcn.00429300
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [ebp - 0x2c], 8
jae 0x410d68
lea eax, [ebp - 0x40]
push edi
push 0x80
push 4
push edi
push 3
push accept
push eax
call ebx
mov dword [esi + 0x158], eax
cmp eax, 0xffffffff
jne 0x410dbc
xor eax, eax
push eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x9c]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x410da7
mov eax, dword [eax + 4]
jmp 0x410daa
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x459644
jmp 0x410e47
call fcn.00411473
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.004018a6
xor ebx, ebx
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x60]
call fcn.004018a6
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.004018a6
push edi
push esi
lea ecx, [ebp + 0x28]
call fcn.004017a5
push edi
push esi
lea ecx, [ebp + 0x44]
call fcn.004017a5
push edi
push esi
lea ecx, [ebp + 0x60]
call fcn.004017a5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 0x7c
xor eax, eax
push eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x9c]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x410e37
mov eax, dword [eax + 4]
jmp 0x410e3a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45966c
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x14
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.004017a5
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a6
jmp 0x410e8a
push 0x459694
push ebx
push dword [0x468674]
call fcn.00429300
add esp, 0xc
push 0x4596b0
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
lea edi, [esi + 0xc0]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.004149b8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x410ed9
lea esi, [ebp - 0x18]
call fcn.004142d8
push dword [eax]
call fcn.0043a3dd
pop ecx
call fcn.0040a7f5
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x28]
call fcn.004149b8
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.0040a46c
test al, al
jne 0x410ec1
push dword [ebp - 0x10]
call fcn.00414071
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xfc]
add edi, 0xf0
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.004149b8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x410f3a
lea esi, [ebp - 0x18]
call fcn.004142d8
push dword [eax]
call fcn.0043a3dd
pop ecx
call fcn.0040a7f5
mov edi, dword [ebp - 0x24]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.004149b8
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.0040a46c
test al, al
jne 0x410f22
push dword [ebp - 0x24]
call fcn.00414071
mov esi, dword [ebp + 8]
lea eax, [esi + 0x138]
call fcn.004141ef
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp + 0x28]
push eax
lea ecx, [esi + 0x5c]
call fcn.004016f1
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esi + 0x78]
call fcn.004016f1
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x60]
push eax
lea ecx, [esi + 0x94]
call fcn.004016f1
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x80]
mov edx, dword [esi + 4]
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], eax
mov edx, dword [edx + 0x16d8]
push ebx
sub ecx, 1
push edx
sbb eax, ebx
push eax
push ecx
call fcn.00447090
inc eax
mov dword [esi + 0xb8], eax
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00414e63
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x410ff3
lea eax, [ebp - 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41102f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.004018a6
mov ebx, esi
xor edi, edi
jmp 0x410dce
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x41103b
lea eax, [ebp - 0x78]
push ebx
push 0x80
push 4
push ebx
push 3
push accept
push eax
call edi
mov dword [esi + 0x158], eax
cmp eax, 0xffffffff
je 0x411013
xor eax, eax
push eax
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x9c]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x41107a
mov eax, dword [eax + 4]
jmp 0x41107d
add eax, 4
push eax
push 0x4596c0
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.004017a5
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xf4]
cmp ecx, ebx
je 0x4110c5
push ebx
push dword [eax + 0xf8]
push 0x2433
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
push ebx
push eax
push ecx
push 4
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
je 0x41119f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x411102
lea eax, [ebp - 0x78]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411013
push 0x4596ec
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
call fcn.00411473
mov eax, dword [esi + 0xb8]
xor edi, edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jl 0x411177
mov byte [ebp + 0xb], bl
lea eax, [ebp + 0xb]
push eax
lea eax, [esi + 0x138]
call fcn.00414199
mov eax, dword [esi + 0xb8]
inc edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
jle 0x411153
mov eax, dword [esi + 0xb8]
cmp eax, 0x400
jg 0x411203
push 0x1c
call fcn.0043a403
pop ecx
cmp eax, ebx
je 0x4111e5
push dword [esi + 0xb8]
xor ecx, ecx
call fcn.004193d4
jmp 0x4111e7
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
push 1
sub eax, 1
push 0x4596e8
sbb ecx, ebx
push ecx
push eax
call fcn.004109c1
cmp eax, 1
je 0x411120
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004018a6
push 0xfffffffffffffffd
pop ebx
jmp 0x411028
xor eax, eax
mov dword [eax + 0x14], ebx
mov ecx, dword [eax]
mov dword [ebp + 8], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a3e1
jmp 0x4112ea
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xe8]
mov dword [ebp + 8], ecx
imul ecx, ecx, 0x2710
cmp eax, ecx
jle 0x41127d
cmp eax, ebx
mov dword [ebp + 8], ebx
jle 0x4112ea
mov edi, 0x2710
push 0x1c
call fcn.0043a403
pop ecx
cmp eax, ebx
je 0x41124e
mov ecx, dword [esi + 0xb8]
sub ecx, dword [ebp + 8]
cmp ecx, edi
cmovge ecx, edi
push ecx
mov ecx, dword [ebp + 8]
call fcn.004193d4
jmp 0x411250
xor eax, eax
mov dword [eax + 0x14], ebx
mov ecx, dword [eax]
mov dword [ebp + 0x80], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 0x80]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a3e1
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xb8]
jl 0x411229
jmp 0x4112ea
xor edi, edi
cmp dword [ebp + 8], ebx
jle 0x4112ea
push 0x1c
call fcn.0043a403
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4112c5
mov ecx, dword [esi + 0xb8]
mov eax, edi
imul eax, ecx
cdq
idiv dword [ebp + 8]
mov dword [ebp + 0x80], eax
lea eax, [edi + 1]
imul eax, ecx
cdq
idiv dword [ebp + 8]
mov ecx, dword [ebp + 0x80]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x24]
call fcn.004193d4
jmp 0x4112c7
xor eax, eax
mov dword [eax + 0x14], ebx
mov ecx, dword [eax]
mov dword [ebp + 0x80], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 0x80]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a3e1
inc edi
cmp edi, dword [ebp + 8]
jl 0x411284
mov eax, dword [esi + 4]
lea edi, [eax + 0x1640]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
add eax, 0x600
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x18], 8
jb 0x411317
mov eax, dword [eax + 4]
jmp 0x41131a
add eax, 4
push 0xff
push eax
mov eax, dword [esi + 4]
add eax, 0x100
push eax
call fcn.0043c74c
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xb0]
mov dword [eax + 0x620], ecx
mov ecx, dword [esi + 0xb4]
mov dword [eax + 0x624], ecx
mov eax, dword [esi + 4]
add esp, 0xc
push edi
mov dword [eax + 0x630], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xf4]
cmp ecx, ebx
je 0x411385
push dword [esi + 0xb8]
push dword [eax + 0xf8]
push 0x2400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004018a6
jmp 0x411028