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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44b7a0
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebp
mov ebp, dword [esp + 0x5c]
cmp dword [ebp + 0x18], 0x10
push edi
lea edi, [ebp + 4]
jb 0x42579b
mov eax, dword [edi]
jmp 0x42579d
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4257be
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
push ebx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x18]
cmp eax, 0x10
mov dword [esp + 0x5c], ebx
jb 0x4257dd
mov ecx, dword [edi]
jmp 0x4257df
mov ecx, edi
cmp eax, 0x10
push esi
jb 0x4257e9
mov esi, dword [edi]
jmp 0x4257f0
mov esi, edi
jmp 0x4257f0
cmp dword [ebp + 0x18], 0x10
jb 0x4257fa
mov edx, dword [edi]
jmp 0x4257fc
mov edx, edi
mov eax, dword [ebp + 0x14]
add eax, edx
cmp esi, eax
je 0x42586e
cmp byte [esi], 0x5c
jne 0x42586b
cmp ecx, esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x42582d
mov eax, esi
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00401ab0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.004231d0
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x60], bl
jb 0x425858
mov edx, dword [esp + 0x40]
push edx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea ecx, [esi + 1]
inc esi
jmp 0x4257f0
mov eax, dword [ebp + 0x18]
mov esi, 0x10
cmp eax, esi
jb 0x42587e
mov edx, dword [edi]
jmp 0x425880
mov edx, edi
mov eax, dword [ebp + 0x14]
add eax, edx
cmp ecx, eax
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
je 0x4258a7
sub eax, ecx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00401ab0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 2
call fcn.004231d0
cmp dword [esp + 0x54], esi
jb 0x4258cd
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp ebp, edi
mov byte [esp + 0x60], 3
mov esi, ebp
je 0x42595a
lea esp, [esp]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.0040b9c0
push 0x5c
push 1
lea ecx, [esp + 0x28]
call fcn.00415de0
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x425919
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42593f
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x425933
lea eax, [esp + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4259bd
add esi, 0x1c
cmp esi, edi
jne 0x4258f0
cmp dword [esp + 0x38], 0x10
jb 0x42595a
mov edx, dword [esp + 0x24]
push edx
call fcn.0043c389
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
je 0x4259a5
cmp ebp, edi
je 0x42599c
lea esi, [ebp + 0x18]
cmp dword [esi], 0x10
jb 0x425986
mov eax, dword [esi - 0x14]
push eax
call fcn.0043c389
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x425975
push ebp
call fcn.0043c389
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
cmp dword [esp + 0x38], 0x10
jb 0x4259d1
mov edx, dword [esp + 0x24]
push edx
call fcn.0043c389
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
je 0x4259ff
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
call fcn.00416690
push ebp
call fcn.0043c389
add esp, 0x14
mov ecx, dword [esp + 0x58]
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x54
ret