Function at 0x42ed05
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
mov eax, 0x466d93
call fcn.0045ea44
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 4], 4
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
lea ecx, [esi + 8]
push eax
mov dword [ebp - 0x30], ecx
call fcn.00401540
lea ecx, [ebp - 0x68]
call fcn.00401d20
mov edi, 0x48e3d8
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.004015b0
test al, al
je 0x42ed5e
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401540
jmp 0x42ee3e
push str.SoDA_
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.004026e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401540
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026a0
lea ecx, [ebp - 0x68]
call fcn.00401d50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42eded
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x20]
call fcn.00407d50
push dword [eax]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
call fcn.0041ac45
pop ecx
pop ecx
mov ecx, eax
call fcn.00405c20
push eax
push 0x47d630
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00407d30
push edi
lea ecx, [ebp - 0x68]
call fcn.00401d50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x47c4a4
call fcn.00402460
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
call fcn.0041ee59
cmp eax, 0xffffffff
jne 0x42ee15
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.004043b0
jmp 0x42ee3e
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00409990
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.004043b0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026a0
push str.._finfo_
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004026e0
add esp, 0xc
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 8
call fcn.00401540
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026a0
push str.._fmap_
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004026e0
add esp, 0xc
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00401540
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026a0
push esi
call fcn.00431af4
test al, al
je 0x42f0e1
push 0x47d644
push 8
pop edi
push edi
push dword [0x48d1c4]
call fcn.00454eb0
mov eax, dword [esi + 0xf0]
sub eax, dword [esi + 0xec]
add esp, 0xc
test eax, 0xfffffffc
jne 0x42eedc
push str.unsche
jmp 0x42f0bd
lea eax, [ebp + 0x44]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.004052f0
pop ecx
pop ecx
test al, al
je 0x42f0b8
lea eax, [ebp + 0x7c]
push eax
lea eax, [esi + 0xb0]
push eax
call fcn.004052f0
pop ecx
pop ecx
test al, al
jne 0x42ef19
lea ecx, [ebp + 0x7c]
call fcn.004015b0
test al, al
je 0x42f0b8
mov eax, dword [esi + 0xd0]
cmp eax, dword [ebp + 0x98]
jne 0x42f0b8
mov eax, dword [esi + 0xd4]
cmp eax, dword [ebp + 0x9c]
jne 0x42f0b8
push 0x47d66c
push edi
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004026e0
add esp, 0xc
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00401d50
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42f05c
push 0x47d694
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
push 0
push ebx
push 4
push 0
push 3
push closesocket
lea ecx, [ebp - 0x4c]
call fcn.00401d50
push eax
call edi
mov dword [esi + 0x178], eax
cmp eax, 0xffffffff
jne 0x42f00a
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00407d50
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xa0]
call fcn.0041ac45
pop ecx
pop ecx
mov ecx, eax
call fcn.00405c20
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47d6b4
jmp 0x42f08f
call fcn.0042f66e
lea ecx, [ebp - 0x4c]
call fcn.004026a0
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.004026a0
lea ecx, [ebp + 0xc]
call fcn.004026a0
lea ecx, [ebp + 0x28]
call fcn.00407d30
lea ecx, [ebp + 0x44]
call fcn.00407d30
lea ecx, [ebp + 0x60]
call fcn.00407d30
lea ecx, [ebp + 0x7c]
call fcn.00407d30
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x98
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00407d50
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xa0]
call fcn.0041ac45
pop ecx
pop ecx
mov ecx, eax
call fcn.00405c20
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x47d6dc
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0x14
lea ecx, [ebp - 0xa0]
call fcn.00407d30
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004026a0
jmp 0x42f0cc
push 0x47d704
push edi
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
push 0x47d720
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00407820
and dword [ebp - 0x18], 0
add esi, 0xe0
mov edi, esi
mov dword [ebp - 0x14], esi
mov esi, dword [esi + 0xc]
lea ebx, [ebp - 0x2c]
call fcn.0041e661
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
jmp 0x42f129
lea esi, [ebp - 0x1c]
call fcn.00428840
push dword [eax]
call fcn.0043bc7d
pop ecx
call fcn.00428bc6
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x10]
lea ebx, [ebp - 0x24]
call fcn.0041e661
mov edi, ebx
lea esi, [ebp - 0x1c]
call fcn.00415347
test al, al
jne 0x42f111
push dword [ebp - 0x14]
call fcn.0042ccc6
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x11c]
add edi, 0x110
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x20], edi
call fcn.0041e661
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
jmp 0x42f18a
lea esi, [ebp - 0x1c]
call fcn.00428840
push dword [eax]
call fcn.0043bc7d
pop ecx
call fcn.00428bc6
mov edi, dword [ebp - 0x20]
mov esi, dword [edi + 0x10]
lea ebx, [ebp - 0x2c]
call fcn.0041e661
mov edi, ebx
lea esi, [ebp - 0x1c]
call fcn.00415347
test al, al
jne 0x42f172
push dword [ebp - 0x20]
call fcn.0042ccc6
mov esi, dword [ebp + 8]
lea eax, [esi + 0x158]
call fcn.00432126
lea eax, [ebp + 0x28]
push eax
lea ecx, [esi + 0x5c]
call fcn.00409280
lea eax, [ebp + 0x44]
push eax
lea ecx, [esi + 0x78]
call fcn.00409280
lea eax, [ebp + 0x60]
push eax
lea ecx, [esi + 0x94]
call fcn.00409280
lea eax, [ebp + 0x7c]
push eax
lea ecx, [esi + 0xb0]
call fcn.00409280
mov ecx, dword [ebp + 0x98]
mov eax, dword [ebp + 0x9c]
mov edx, dword [esi + 4]
push 0
pop edi
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], eax
mov edx, dword [edx + 0x16f4]
push edi
sub ecx, 1
push edx
sbb eax, edi
push eax
push ecx
call fcn.0044afe0
inc eax
mov dword [esi + 0xd8], eax
push str.._p4p_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004026e0
add esp, 0xc
push edi
mov ebx, 0x80
push ebx
push 4
push edi
push 1
push 0xc0000000
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xb
call fcn.00401d50
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x42f288
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x84]
mov esi, eax
call fcn.004026a0
jmp 0x42f019
push 0
push ebx
push 4
push 0
push 3
push closesocket
lea ecx, [ebp - 0x84]
call fcn.00401d50
push eax
call edi
mov dword [esi + 0x178], eax
cmp eax, 0xffffffff
je 0x42f270
mov eax, dword [esi + 4]
test dword [eax + 0x1690], 0xfffffff8
je 0x42f2cd
mov ecx, dword [ebp - 0x30]
call fcn.00401d50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00407d50
push dword [eax]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa0]
call fcn.0041ac45
pop ecx
pop ecx
mov ecx, eax
call fcn.00405c20
push eax
push 0x47d730
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0x10
lea ecx, [ebp - 0xa0]
call fcn.00407d30
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x42f338
push 0
push dword [eax + 0xf8]
push 0x2433
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
push 0
push eax
push ecx
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x42f431
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 3
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x84]
call fcn.00401d50
push eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42f270
push 0x47d75c
push 8
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
call fcn.0042f66e
mov eax, dword [esi + 0xd8]
xor edi, edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jl 0x42f3ea
mov byte [ebp + 0xb], 0
lea eax, [ebp + 0xb]
push eax
lea eax, [esi + 0x158]
call fcn.004320d0
mov eax, dword [esi + 0xd8]
inc edi
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp edi, eax
jle 0x42f3c6
mov eax, dword [esi + 4]
cmp dword [eax + 0x1690], 9
jne 0x42f4bb
xor edi, edi
cmp dword [esi + 0xd8], edi
push 0xa
pop ebx
mov dword [ebp + 8], edi
jle 0x42f5d1
push 0x1c
call fcn.0043c5aa
pop ecx
test eax, eax
je 0x42f478
mov ecx, dword [esi + 0xd8]
sub ecx, edi
cmp ecx, ebx
cmovge ecx, ebx
push ecx
mov ecx, edi
call fcn.0042e7bc
jmp 0x42f47a
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
push 1
sub eax, 1
push 0x47d758
sbb ecx, 0
push ecx
push eax
call fcn.0042ec27
cmp eax, 1
je 0x42f392
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004026a0
push 0xfffffffffffffffd
pop esi
jmp 0x42f019
xor eax, eax
and dword [eax + 0x14], 0
mov ecx, dword [eax]
mov dword [ebp + 0x9c], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 0x9c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042876b
add edi, ebx
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jne 0x42f4aa
shl ebx, 2
and dword [ebp + 8], 0
cmp edi, dword [esi + 0xd8]
jl 0x42f40e
jmp 0x42f5d1
mov ecx, dword [esi + 0xd8]
cmp ecx, 0x400
jg 0x42f503
push 0x1c
call fcn.0043c5aa
pop ecx
test eax, eax
je 0x42f4e4
push dword [esi + 0xd8]
xor ecx, ecx
call fcn.0042e7bc
jmp 0x42f4e6
xor eax, eax
and dword [eax + 0x14], 0
mov ecx, dword [eax]
mov dword [ebp + 8], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042876b
jmp 0x42f5d1
mov ebx, dword [eax + 0xe8]
mov eax, ebx
imul eax, eax, 0x2710
cmp ecx, eax
jle 0x42f56d
xor ebx, ebx
test ecx, ecx
jle 0x42f5d1
mov edi, 0x2710
push 0x1c
call fcn.0043c5aa
pop ecx
test eax, eax
je 0x42f547
mov ecx, dword [esi + 0xd8]
sub ecx, ebx
cmp ecx, edi
cmovge ecx, edi
push ecx
mov ecx, ebx
call fcn.0042e7bc
jmp 0x42f549
xor eax, eax
and dword [eax + 0x14], 0
mov ecx, dword [eax]
mov dword [ebp + 8], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042876b
add ebx, edi
cmp ebx, dword [esi + 0xd8]
jl 0x42f524
jmp 0x42f5d1
xor edi, edi
test ebx, ebx
jle 0x42f5d1
push 0x1c
call fcn.0043c5aa
pop ecx
mov dword [ebp + 0x9c], eax
test eax, eax
je 0x42f5b2
mov ecx, dword [esi + 0xd8]
mov eax, ecx
imul eax, edi
cdq
idiv ebx
mov dword [ebp + 8], eax
lea eax, [edi + 1]
imul eax, ecx
cdq
idiv ebx
mov ecx, dword [ebp + 8]
sub eax, ecx
push eax
mov eax, dword [ebp + 0x9c]
call fcn.0042e7bc
jmp 0x42f5b4
xor eax, eax
and dword [eax + 0x14], 0
mov ecx, dword [eax]
mov dword [ebp + 8], eax
mov dword [eax + 8], ecx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042876b
inc edi
cmp edi, ebx
jl 0x42f573
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 ecx, dword [ebp - 0x30]
push 0xff
call fcn.00401d50
push eax
mov eax, dword [esi + 4]
add eax, 0x100
push eax
call fcn.0043fb0d
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xd0]
mov dword [eax + 0x620], ecx
mov ecx, dword [esi + 0xd4]
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]
test ecx, ecx
je 0x42f663
push dword [esi + 0xd8]
push dword [eax + 0xf8]
push 0x2400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x84]
jmp 0x42f012