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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7e18
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x4cd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov edx, esi
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420dc3
sub edx, ecx
lea ecx, [ebp - 0x68]
sar edx, 1
push edx
push esi
call fcn.0040afa0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
xor edx, edx
nop dword [eax]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov edi, dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
cmp edx, edi
jae 0x420e3e
mov eax, edi
lea esi, [ecx + edx*2]
sub eax, edx
je 0x420e3e
nop dword [eax + eax]
cmp word [esi], 0x5c
je 0x420ead
add esi, 2
sub eax, 1
jne 0x420e30
or esi, 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
cmp esi, 0xffffffff
je 0x420f02
cmp edi, edx
jb 0x421227
sub edi, edx
lea eax, [ebp - 0x68]
mov ecx, esi
sub ecx, edx
cmp edi, ecx
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.0040afa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x420eb3
mov ecx, eax
call fcn.0040a840
add dword [ebp - 0x1c], 0x18
jmp 0x420ebc
sub esi, ecx
sar esi, 1
jmp 0x420e41
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b850
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x420efa
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ef0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
lea edx, [esi + 1]
jmp 0x420e10
cmp edi, edx
jb 0x421227
sub edi, edx
lea eax, [ebp - 0x68]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x54], 8
push ecx
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.0040afa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
push ecx
cmp eax, dword [ebp - 0x18]
je 0x420f4a
mov ecx, eax
call fcn.0040a840
add dword [ebp - 0x1c], 0x18
jmp 0x420f53
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b850
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x420f91
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420f87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x420f9c
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420fc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.0040afa0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421170
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
mov edi, 1
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jle 0x421170
lea esi, [edi + 0x17]
nop
mov ecx, dword [ebp - 0x28]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x421231
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 1
cmovae eax, dword [ebp - 0x38]
push 0x4bd6c0
push ecx
push eax
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
call fcn.0040c340
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x421069
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040b370
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0x38]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x50]
push eax
movq qword [ebp - 0x40], xmm0
call fcn.0040a760
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4210e2
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4210d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
cmp edx, 8
jb 0x421123
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421119
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42114d
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x20]
inc edi
imul ecx
add esi, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x421020
push dword [ebp - 0x6c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x24]
mov esi, eax
cmp edx, 8
jb 0x4211b5
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4211ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.00414040
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x421207
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4211fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42122c
push edx
push ecx
call fcn.0044434d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443db6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040b500
call fcn.00447297
call fcn.004015c0
int3