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

Disassembly:
mov eax, 0x45336f
call fcn.0044c764
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.004017f2
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 7
call fcn.00401b41
mov byte [ebp - 4], 4
cmp dword [0x467514], edi
jne 0x410abb
push ebx
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.004017f2
jmp 0x410bae
push str.SoDA_
lea eax, [ebp - 0x44]
push 0x467500
push eax
call fcn.00414e0f
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.004017f2
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a8
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x410afb
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410b5e
push edi
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x44]
call fcn.0042619d
pop ecx
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 0x10
jb 0x410b22
mov eax, dword [eax + 4]
jmp 0x410b25
add eax, 4
push eax
push 0x4585b8
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004017a7
cmp dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x5c]
jae 0x410b56
lea eax, [ebp - 0x5c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
push 0x457f94
lea ecx, [ebp + 0xc]
call fcn.0040e7ab
push ebx
cmp eax, ebx
jne 0x410b82
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x60]
call fcn.004064f2
jmp 0x410bae
inc eax
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e75f
push ebx
push edi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.004064f2
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a8
push str.._finfo_
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e0f
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call fcn.004017f2
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a8
push str.._fmap_
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e0f
add esp, 0xc
push ebx
push edi
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.004017f2
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a8
push esi
call fcn.00413b66
test al, al
je 0x410e59
push 0x4585cc
push 8
pop ebx
push ebx
push dword [0x467474]
call fcn.00429210
mov eax, dword [esi + 0xd0]
sub eax, dword [esi + 0xcc]
add esp, 0xc
test eax, 0xfffffffc
jne 0x410c56
push str.unsche
jmp 0x410e35
lea eax, [esi + 0x5c]
lea ecx, [ebp + 0x28]
call fcn.004030bb
test eax, eax
jne 0x410e30
lea eax, [esi + 0x94]
lea ecx, [ebp + 0x60]
call fcn.004030bb
test eax, eax
je 0x410c84
cmp dword [ebp + 0x74], edi
jne 0x410e30
mov eax, dword [esi + 0xb0]
cmp eax, dword [ebp + 0x7c]
jne 0x410e30
mov eax, dword [esi + 0xb4]
cmp eax, dword [ebp + 0x80]
jne 0x410e30
push 0x4585f4
push ebx
push dword [0x467474]
call fcn.00429210
add esp, 0xc
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00414e0f
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jae 0x410cdd
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 0x410dd0
push 0x45861c
push 8
push dword [0x467474]
call fcn.00429210
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [ebp - 0x2c], 8
jae 0x410d22
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 0x410d76
xor eax, eax
push eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x9c]
call fcn.0042619d
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 0x10
jb 0x410d61
mov eax, dword [eax + 4]
jmp 0x410d64
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45863c
jmp 0x410e01
call fcn.0041142d
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.004018a8
xor ebx, ebx
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x60]
call fcn.004018a8
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.004018a8
push edi
push esi
lea ecx, [ebp + 0x28]
call fcn.004017a7
push edi
push esi
lea ecx, [ebp + 0x44]
call fcn.004017a7
push edi
push esi
lea ecx, [ebp + 0x60]
call fcn.004017a7
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.0042619d
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x410df1
mov eax, dword [eax + 4]
jmp 0x410df4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x458664
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0x14
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.004017a7
push edi
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004018a8
jmp 0x410e44
push 0x45868c
push ebx
push dword [0x467474]
call fcn.00429210
add esp, 0xc
push 0x4586a8
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0xc
lea edi, [esi + 0xc0]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.0040a4c1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x410e93
lea esi, [ebp - 0x18]
call fcn.0040a11d
push dword [eax]
call fcn.0043a14d
pop ecx
call fcn.0040a4e1
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x28]
call fcn.0040a4c1
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.0040a17a
test al, al
jne 0x410e7b
push dword [ebp - 0x10]
call fcn.0041404e
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0xfc]
add edi, 0xf0
lea esi, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.0040a4c1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x410ef4
lea esi, [ebp - 0x18]
call fcn.0040a11d
push dword [eax]
call fcn.0043a14d
pop ecx
call fcn.0040a4e1
mov edi, dword [ebp - 0x24]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x20]
call fcn.0040a4c1
mov edi, esi
lea esi, [ebp - 0x18]
call fcn.0040a17a
test al, al
jne 0x410edc
push dword [ebp - 0x24]
call fcn.0041404e
mov esi, dword [ebp + 8]
lea eax, [esi + 0x138]
call fcn.004141ee
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea eax, [ebp + 0x28]
push eax
lea ecx, [esi + 0x5c]
call fcn.004016f3
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x44]
push eax
lea ecx, [esi + 0x78]
call fcn.004016f3
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x60]
push eax
lea ecx, [esi + 0x94]
call fcn.004016f3
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.00446df0
inc eax
mov dword [esi + 0xb8], eax
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00414e0f
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x410fad
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 0x410fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.004018a8
mov ebx, esi
xor edi, edi
jmp 0x410d88
cmp dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x78]
jae 0x410ff5
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 0x410fcd
xor eax, eax
push eax
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x9c]
call fcn.0042619d
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x411034
mov eax, dword [eax + 4]
jmp 0x411037
add eax, 4
push eax
push 0x4586b8
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.004017a7
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xf4]
cmp ecx, ebx
je 0x41107f
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 0x411159
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 0x4110bc
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 0x410fcd
push 0x4586e4
push 8
push dword [0x467474]
call fcn.00429210
add esp, 0xc
call fcn.0041142d
mov eax, dword [esi + 0xb8]
xor edi, edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jl 0x411131
mov byte [ebp + 0xb], bl
lea eax, [ebp + 0xb]
push eax
lea eax, [esi + 0x138]
call fcn.00414198
mov eax, dword [esi + 0xb8]
inc edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
jle 0x41110d
mov eax, dword [esi + 0xb8]
cmp eax, 0x400
jg 0x4111bd
push 0x1c
call fcn.0043a173
pop ecx
cmp eax, ebx
je 0x41119f
push dword [esi + 0xb8]
xor ecx, ecx
call fcn.00419380
jmp 0x4111a1
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
push 1
sub eax, 1
push 0x4586e0
sbb ecx, ebx
push ecx
push eax
call fcn.0041097b
cmp eax, 1
je 0x4110da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.004018a8
push 0xfffffffffffffffd
pop ebx
jmp 0x410fe2
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.0040a050
jmp 0x4112a4
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xe8]
mov dword [ebp + 8], ecx
imul ecx, ecx, 0x2710
cmp eax, ecx
jle 0x411237
cmp eax, ebx
mov dword [ebp + 8], ebx
jle 0x4112a4
mov edi, 0x2710
push 0x1c
call fcn.0043a173
pop ecx
cmp eax, ebx
je 0x411208
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.00419380
jmp 0x41120a
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.0040a050
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xb8]
jl 0x4111e3
jmp 0x4112a4
xor edi, edi
cmp dword [ebp + 8], ebx
jle 0x4112a4
push 0x1c
call fcn.0043a173
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x41127f
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.00419380
jmp 0x411281
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.0040a050
inc edi
cmp edi, dword [ebp + 8]
jl 0x41123e
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 0x4112d1
mov eax, dword [eax + 4]
jmp 0x4112d4
add eax, 4
push 0xff
push eax
mov eax, dword [esi + 4]
add eax, 0x100
push eax
call fcn.0043c4bc
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 0x41133f
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.004018a8
jmp 0x410fe2