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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7c2c
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x544], ecx
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00408530
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4dd030
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402250
mov esi, eax
push 0
push 0x5104ac
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.004084b0
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x504]
push ecx
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.004085c0
mov dword [ebp - 0x548], eax
mov edx, dword [ebp - 0x548]
mov dword [ebp - 0x54c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54c]
call fcn.00402270
push eax
lea ecx, [ebp - 0x4c]
call fcn.004012b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x504]
call fcn.00402e50
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004032b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00409580
push 0x4d92b0
lea ecx, [ebp - 0x50c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004093b0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00409380
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.00410270
add esp, 0x18
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x52c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004093b0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x524], edx
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x534], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x530], edx
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x524]
push ecx
mov edx, dword [ebp - 0x530]
push edx
mov eax, dword [ebp - 0x534]
push eax
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00409290
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
call fcn.004094e0
test eax, eax
je 0x4dd015
push 0
lea ecx, [ebp - 0xd4]
call fcn.004e04e0
mov byte [ebp - 4], 4
push 0x9c
lea ecx, [ebp - 0x60]
call fcn.004027c0
push 0x9d
lea ecx, [ebp - 0x5c]
call fcn.004027c0
mov byte [ebp - 0x58], 1
lea ecx, [ebp - 0xd4]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x4dd002
mov ecx, dword [ebp - 0xd8]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0xd8]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.004e04a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004012f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004012f0
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4dd108
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x4dd108
push 0
lea ecx, [ebp - 0x15c]
call fcn.004e04e0
mov dword [ebp - 4], 5
push 0xb9
lea ecx, [ebp - 0xe8]
call fcn.004027c0
push 0x9d
lea ecx, [ebp - 0xe4]
call fcn.004027c0
mov byte [ebp - 0xe0], 1
lea ecx, [ebp - 0x15c]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x4dd0f2
mov ecx, dword [ebp - 0x160]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x160]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004e04a0
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4dd1c8
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402250
cmp eax, 0x103
jle 0x4dd1c8
push 0
lea ecx, [ebp - 0x1e4]
call fcn.004e04e0
mov dword [ebp - 4], 6
push 0x92
lea ecx, [ebp - 0x170]
call fcn.004027c0
push 0x93
lea ecx, [ebp - 0x16c]
call fcn.004027c0
mov byte [ebp - 0x168], 1
lea ecx, [ebp - 0x1e4]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
je 0x4dd1b2
mov ecx, dword [ebp - 0x1e8]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x1e8]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e4]
call fcn.004e04a0
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4dd61b
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dd61b
push 0
lea ecx, [ebp - 0x26c]
call fcn.004e04e0
mov dword [ebp - 4], 7
push 0x9a
lea ecx, [ebp - 0x1f8]
call fcn.004027c0
push 0x9b
lea ecx, [ebp - 0x1f4]
call fcn.004027c0
lea ecx, [ebp - 0x26c]
call fcn.00488ee0
cmp eax, 2
jne 0x4dd27d
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x4dd274
mov ecx, dword [ebp - 0x270]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x270]
call fcn.00411a50
mov byte [ebp - 0xd], 0
jmp 0x4dd609
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
push eax
lea ecx, [ebp - 0x298]
call fcn.004012b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
call fcn.00401990
push eax
lea ecx, [ebp - 0x298]
call fcn.004093e0
movzx edx, word [eax]
cmp edx, 0x5c
je 0x4dd2cd
push 0x5104b0
lea ecx, [ebp - 0x298]
call fcn.00409260
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
mov byte [ebp - 0x271], 0
mov eax, dword [ebp - 0x278]
push eax
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00409410
add eax, 1
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
push ecx
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00409410
mov dword [ebp - 0x27c], eax
jmp 0x4dd33b
mov edx, dword [ebp - 0x278]
push edx
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00409410
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
cmp eax, dword [0x510ad8]
je 0x4dd5bf
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4dd5bf
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x298]
call fcn.004032f0
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004091b0
mov byte [ebp - 4], 9
mov ecx, dword [0x510ad8]
push ecx
mov edx, dword [0x510ad8]
push edx
push 0x5104b4
lea ecx, [ebp - 0x2b4]
call fcn.00409460
add eax, 1
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004018f0
push 0
lea ecx, [ebp - 0x2b4]
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2b8], 0
jne 0x4dd541
cmp dword [ebp - 0x2bc], 0xb7
je 0x4dd541
cmp dword [ebp - 0x2bc], 5
jne 0x4dd49e
push 0
lea ecx, [ebp - 0x33c]
call fcn.004e04e0
mov byte [ebp - 4], 0xa
push 0x90
lea ecx, [ebp - 0x2c8]
call fcn.004027c0
push 0x91
lea ecx, [ebp - 0x2c4]
call fcn.004027c0
mov byte [ebp - 0x2c0], 1
lea ecx, [ebp - 0x33c]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x4dd486
mov ecx, dword [ebp - 0x340]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x340]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x33c]
call fcn.004e04a0
jmp 0x4dd53f
push 0
lea ecx, [ebp - 0x3c4]
call fcn.004e04e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2b4]
call fcn.004032f0
push eax
push 0x98
lea eax, [ebp - 0x350]
push eax
call fcn.004101b0
add esp, 0xc
push 0x99
lea ecx, [ebp - 0x34c]
call fcn.004027c0
mov byte [ebp - 0x348], 1
lea ecx, [ebp - 0x3c4]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3c8], 0
je 0x4dd52c
mov ecx, dword [ebp - 0x3c8]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x3c8]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3c4]
call fcn.004e04a0
jmp 0x4dd59f
cmp dword [ebp - 0x2b8], 1
jne 0x4dd59f
movzx ecx, byte [ebp - 0x271]
test ecx, ecx
jne 0x4dd59f
lea edx, [ebp - 0x2b4]
push edx
mov ecx, dword [ebp - 0x544]
add ecx, 0x664
call fcn.00404ec0
mov ecx, dword [ebp - 0x544]
add ecx, 0x664
call fcn.00401990
sub eax, 1
push eax
mov ecx, dword [ebp - 0x544]
add ecx, 0x664
call fcn.004093e0
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 0x271], 1
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2b4]
call fcn.004012f0
jmp 0x4dd321
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4dd5fa
push 1
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x540], esp
push eax
call fcn.004012b0
mov dword [ebp - 0x550], eax
call fcn.00419800
add esp, 0x20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x298]
call fcn.004012f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.004e04a0
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4dd781
mov ecx, dword [ebp - 0x544]
add ecx, 0x660
call fcn.00402270
push eax
lea ecx, [ebp - 0x3f0]
call fcn.004012b0
mov dword [ebp - 4], 0xc
push 0x5104b8
lea ecx, [ebp - 0x3f0]
call fcn.004091f0
mov dword [ebp - 0x3cc], 0
push 0x5104dc
lea ecx, [ebp - 0x3f0]
call fcn.004032f0
push eax
lea edx, [ebp - 0x3cc]
push edx
call fcn.004a87b2
add esp, 0xc
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3d4], eax
cmp dword [ebp - 0x3cc], 0
jne 0x4dd745
cmp dword [ebp - 0x3d4], 5
jne 0x4dd745
push 0
lea ecx, [ebp - 0x474]
call fcn.004e04e0
mov byte [ebp - 4], 0xd
push 0x90
lea ecx, [ebp - 0x400]
call fcn.004027c0
push 0x91
lea ecx, [ebp - 0x3fc]
call fcn.004027c0
mov byte [ebp - 0x3f8], 1
lea ecx, [ebp - 0x474]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0
je 0x4dd730
mov ecx, dword [ebp - 0x478]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x478]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x474]
call fcn.004e04a0
jmp 0x4dd76f
cmp dword [ebp - 0x3cc], 0
je 0x4dd76f
mov eax, dword [ebp - 0x3cc]
push eax
call fcn.004a887c
add esp, 4
lea ecx, [ebp - 0x3f0]
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.004012f0
mov ecx, dword [ebp - 0x544]
cmp dword [ecx + 0x314], 0
jne 0x4dd841
mov ecx, dword [ebp - 0x544]
call fcn.004d9410
movzx edx, al
test edx, edx
jne 0x4dd841
push 0
lea ecx, [ebp - 0x4fc]
call fcn.004e04e0
mov dword [ebp - 4], 0xe
push 0x95
lea ecx, [ebp - 0x488]
call fcn.004027c0
push 0x96
lea ecx, [ebp - 0x484]
call fcn.004027c0
mov byte [ebp - 0x480], 1
lea ecx, [ebp - 0x4fc]
call fcn.00488ee0
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048f2b3
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
je 0x4dd82b
mov ecx, dword [ebp - 0x500]
call fcn.0048f4d2
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x500]
call fcn.00411a50
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4fc]
call fcn.004e04a0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret