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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d679d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x6c], eax
call eax
test eax, eax
je 0x4d4c98
mov esi, 1
jmp 0x4d50b7
sub esp, 0x18
lea eax, [ebp + 8]
mov esi, esp
mov edx, SysReAllocString
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
cmp ecx, 8
jae 0x4d4cdc
movups xmm0, xmmword [eax]
mov edi, 7
movups xmmword [esi], xmm0
jmp 0x4d4d5b
mov edi, ecx
or edi, 7
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4d514d
add eax, eax
cmp eax, 0x1000
jb 0x4d4d24
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d514d
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4d5110
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4d4d3f
test eax, eax
je 0x4d4d3d
push eax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4d511e
jmp 0x4d4d3f
xor ecx, ecx
mov eax, dword [ebp - 0x64]
mov dword [esi], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x68]
push ecx
call fcn.00570780
mov ecx, dword [ebp - 0x64]
add esp, 0xc
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0x28]
mov dword [esi + 0x14], edi
call fcn.004d0150
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 0
jne 0x4d4d7d
xor esi, esi
jmp 0x4d5069
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x6c]
test eax, eax
jne 0x4d4eb8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x6c], ecx
mov esi, ecx
mov dword [ebp - 0x68], edi
mov dword [edi], eax
mov dword [edi + 0x10], eax
lea edx, [esi + 2]
mov dword [edi + 0x14], 7
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d4dc0
sub esi, edx
sar esi, 1
cmp esi, 7
ja 0x4d4def
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ecx
push edi
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4d4ea2
cmp esi, 0x7ffffffe
ja 0x4d512c
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4d4e16
mov dword [ebp - 0x64], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d4e3a
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
mov dword [ebp - 0x64], edi
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4d514d
add eax, eax
cmp eax, 0x1000
jb 0x4d4e61
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d514d
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4d5131
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d4e7c
test eax, eax
je 0x4d4e7a
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4d513f
jmp 0x4d4e7c
xor edi, edi
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [ecx + 0x10], esi
add esi, esi
push esi
push dword [ebp - 0x6c]
mov dword [ecx + 0x14], eax
push edi
call fcn.00570780
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov eax, dword [ebp - 0x68]
mov dword [eax], edi
mov edi, dword [ebp - 0x70]
mov ecx, edi
call fcn.004d4c40
mov esi, eax
test esi, esi
je 0x4d5069
jmp 0x4d4ebb
mov edi, dword [ebp - 0x70]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x4d5069
cmp dword [edi], 0
je 0x4d5069
lea ecx, [ebp - 0x5c]
call fcn.004d2e70
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp - 0x44]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], ecx
cmp eax, ecx
ja 0x4d4f3e
lea esi, [eax + eax]
mov dword [ebp - 0x48], eax
cmp ecx, 8
lea edi, [ebp - 0x58]
push esi
cmovae edi, dword [ebp - 0x58]
push dword [ebp - 0x68]
push edi
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4d5039
cmp eax, 0x7ffffffe
ja 0x4d5152
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4d4f62
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d4f9b
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4d4f7d
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4d4f9b
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4d514d
add eax, eax
cmp eax, 0x1000
jb 0x4d4fc2
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4d514d
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4d5157
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4d4fdd
test eax, eax
je 0x4d4fdb
push eax
call fcn.005a1c68
mov edi, eax
add esp, 4
test edi, edi
je 0x4d5165
jmp 0x4d4fdd
xor edi, edi
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x68]
push edi
call fcn.00570780
mov edx, dword [ebp - 0x64]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4d5036
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d502c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5173
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov dword [ebp - 0x58], edi
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
je 0x4d5055
mov ecx, eax
call fcn.004d8150
add dword [esi + 0x24], 0x34
jmp 0x4d505e
push eax
lea ecx, [esi + 0x20]
call fcn.004d7e80
lea ecx, [ebp - 0x5c]
call fcn.004d2ea0
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d50a3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5099
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5178
push edx
push ecx
call fcn.0056d0c8
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4d50f1
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d50e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5178
push edx
push ecx
call fcn.0056d0c8
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 - 0x10]
xor ecx, ebp
call fcn.0056d855
mov esp, ebp
pop ebp
ret 0x18
push 0x630328
lea eax, [ebp - 0x5d]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x5e]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x5e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x5d]
push eax
call fcn.0057134b
call fcn.00407541
call fcn.004072dc
push 0x630328
lea eax, [ebp - 0x5e]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0x5d]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.0057b201
int3