Function at 0x4061af
Capabilities:
Check if file exists
Delete directory

Disassembly:
push 0x88
mov eax, 0x596bf2
call fcn.00410ff3
mov dword [ebp - 0x8c], ecx
call fcn.00401519
mov ecx, eax
call fcn.00412851
push eax
lea ecx, [ebp - 0x88]
call fcn.0040135f
and dword [ebp - 4], 0
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x78], 0
je 0x40669d
call fcn.004159f2
test al, al
je 0x40620e
pop edx
pop eax
pop eax
push ebp
push edx
pop ebx
push esi
pop ecx
push esp
push eax
push esp
pop ebp
push ebx
pop ebp
pop ecx
pop ebp
push eax
pop edx
push ebx
pop ebp
push ebp
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402647
mov esi, 0x59bdd0
mov byte [ebp - 4], bl
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00401cf3
call fcn.00415671
test al, al
je 0x40625e
pop esi
pop esi
pop eax
push edi
pop ebx
push edx
pop ebx
push edi
push edx
push ebp
pop esp
push esi
pop edx
push eax
pop ecx
pop eax
pop ebx
push edx
push ebp
pop edi
pop esi
push eax
push edi
pop esi
push esi
pop ebp
pop eax
push eax
push ebp
pop ebp
push ebp
call fcn.00415ac1
test al, al
je 0x406279
push edi
push esp
push esi
push esp
pop ecx
pop ecx
push esi
push ebp
push ebp
pop edi
pop edx
pop esp
push esp
push edi
pop esi
pop esi
pop esp
pop ebp
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
push 1
xor esi, esi
lea ecx, [ebp - 0x40]
test eax, eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00401ea6
mov edi, str.GDutilit.exe
push edi
call fcn.00434fd1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00401cf3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
mov dword [ebp - 0x90], esi
call fcn.0041548e
test al, al
je 0x406303
push edx
push ebp
pop esp
pop eax
pop edx
push edi
pop eax
push esi
pop ebx
push ebx
pop ecx
push ebx
pop ecx
push eax
push ebp
pop ecx
pop eax
pop esi
push ecx
push esp
push ebx
pop edi
pop esp
pop esp
push ebx
pop esi
push ebx
pop ebp
pop ecx
push edx
call fcn.00415923
test al, al
je 0x406321
push esp
pop esi
push ecx
push ebp
pop esi
push ebx
pop edi
pop ecx
pop ebx
pop eax
push edx
pop edi
pop esp
push edi
pop esi
push ecx
pop ebp
pop ebp
pop esi
push ecx
push ebp
call fcn.00415449
test al, al
je 0x406341
push esi
push eax
push esp
pop ebx
push ebx
push edi
push ebp
pop ebp
pop edi
pop esp
push esi
push edi
pop edx
pop esi
push edx
pop edx
push edx
pop edx
pop ebp
push eax
push edx
push ebp
push ebp
cmp dword [ebp - 0x90], 0
je 0x40639b
call fcn.00401519
mov ecx, eax
call fcn.0041290f
push eax
lea ecx, [ebp - 0x28]
call fcn.0040135f
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
je 0x40638a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040135f
mov ecx, dword [ebp - 0x8c]
call fcn.004073ae
xor eax, eax
lea ecx, [ebp - 0x28]
inc eax
push 0
push eax
mov byte [ebp - 4], al
call fcn.00401bfd
call fcn.00415a7c
test al, al
je 0x4063c0
push edi
push edx
push ecx
pop esp
push eax
pop esp
push esi
push edx
push esp
pop esi
push ebp
pop ebx
push esp
pop esp
push eax
pop eax
pop ebp
push ebx
push esp
push esi
pop edx
push edi
push ebp
push edx
push esp
push ecx
pop ebx
push edi
call fcn.00415854
test al, al
je 0x4063e9
pop ebp
push esi
push esi
push edx
push ebx
push eax
pop esi
pop esi
push ebp
push eax
push edx
push esi
push esi
push ebx
pop ebx
pop ebx
push edx
pop esi
pop ebx
push esi
pop ecx
pop ebp
push edi
pop edi
push ecx
pop edx
pop ecx
pop edi
push edi
push ecx
pop ecx
pop ebx
call fcn.00415a37
test al, al
je 0x40640b
pop ebx
push ecx
pop esi
push ecx
push edi
pop edx
pop esp
push edx
pop eax
pop ecx
push ebx
push ebx
push ebx
push eax
push ecx
push ebx
pop esi
push edi
pop ebp
push ecx
pop ecx
pop ebx
pop esp
push ecx
push esp
cmp dword [ebp + 8], 0
je 0x406533
call fcn.00401519
mov ecx, eax
call fcn.00412839
push eax
lea ecx, [ebp - 0x28]
call fcn.0040135f
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
je 0x40646b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40646b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040135f
mov ecx, dword [ebp - 0x8c]
call fcn.004073ae
call fcn.00415671
test al, al
je 0x406493
pop esi
pop esi
pop eax
push edi
pop ebx
push edx
pop ebx
push edi
push edx
push ebp
pop esp
push esi
pop edx
push eax
pop ecx
pop eax
pop ebx
push edx
push ebp
pop edi
pop esi
push eax
push edi
pop esi
push esi
pop ebp
pop eax
push eax
push ebp
pop ebp
push ebp
call fcn.00415ac1
test al, al
je 0x4064ae
push edi
push esp
push esi
push esp
pop ecx
pop ecx
push esi
push ebp
push ebp
pop edi
pop edx
pop esp
push esp
push edi
pop esi
pop esi
pop esp
pop ebp
call fcn.00401519
mov ecx, eax
call fcn.00412845
push eax
lea ecx, [ebp - 0x70]
call fcn.0040135f
cmp dword [ebp - 0x60], 0
mov byte [ebp - 4], 4
je 0x406504
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406504
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040135f
mov ecx, dword [ebp - 0x8c]
call fcn.004073ae
call fcn.004071d2
test eax, eax
je 0x406517
mov edx, dword [eax]
mov ecx, eax
call dword [edx + pe_nt_image_headers32]
xor ebx, ebx
lea ecx, [ebp - 0x70]
push 0
inc ebx
push ebx
call fcn.00401bfd
push 0
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401bfd
call fcn.004157ca
test al, al
je 0x40654d
pop ebx
pop eax
pop ecx
push esp
pop edi
push esi
push edx
push edx
push ecx
pop edi
push ebx
push esi
push ebp
pop esi
pop esi
pop edi
push eax
call fcn.004156b6
test al, al
je 0x406570
push ecx
push esi
push eax
push ebp
pop ebp
push ebp
pop esi
pop edi
pop ebp
push ecx
push edi
pop esp
pop ecx
push ebp
pop edx
pop ebp
pop esp
push edx
pop ecx
push edx
pop esi
pop eax
pop ecx
pop edx
pop edx
pop eax
call fcn.004159ad
test al, al
je 0x40658e
push edx
pop esi
pop ebx
pop ebp
pop esi
push esi
push ebp
push esp
push eax
push ecx
push ecx
pop ebx
push ebx
pop eax
pop ebx
push esp
push ebp
push ebp
pop esp
push ecx
pop ebx
call fcn.00401519
mov ecx, eax
call fcn.0041290f
push eax
lea ecx, [ebp - 0x58]
call fcn.0040135f
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 5
je 0x4065f2
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4065f2
mov esi, 0x59baf0
push esi
call fcn.00434fd1
pop ecx
push eax
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.0040778d
cmp eax, 0xffffffff
je 0x4065f2
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00415518
test al, al
je 0x406618
push esi
push ebp
push edi
push ebx
pop edx
push esi
pop ebp
pop edx
pop edx
pop ebp
push ecx
pop esp
push esp
pop ecx
pop eax
push edx
push edx
pop ebp
pop ebp
pop ebx
push ebx
pop edx
push eax
pop ecx
push eax
push esp
push ebp
push ecx
pop esp
call fcn.00415b06
test al, al
je 0x40663f
push edi
pop esi
pop ebp
pop esp
pop eax
pop ecx
push esi
pop esp
push ebp
push esp
push esp
pop edi
push esi
push ebp
pop ebx
push ecx
push eax
pop edx
pop edx
pop esi
push esp
push eax
push edx
push esi
pop ebp
push esp
push ebx
push ebx
push edi
push esi
call fcn.00415404
test al, al
je 0x40665a
pop edx
pop esp
pop edi
push edx
pop esp
push esi
push ebp
pop esp
pop eax
push eax
pop eax
pop ecx
pop ebp
pop ebp
pop eax
push edx
pop ebx
pop esp
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x90], 0
je 0x406687
mov eax, dword [ebp - 0x8c]
mov byte [eax + 0x10], bl
push 0
push ebx
lea ecx, [ebp - 0x58]
call fcn.00401bfd
push 0
push ebx
lea ecx, [ebp - 0x40]
call fcn.00401bfd
push 0
push ebx
lea ecx, [ebp - 0x88]
call fcn.00401bfd
call fcn.00410fae
ret 4