Function at 0x403cbb
Capabilities:
Delete directory
Get common file path

Disassembly:
mov edi, edi
push ebp
sub esp, 0x64
mov eax, 0x416ac6
call fcn.00415f10
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x10], esp
push eax
call fcn.00402a86
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp - 0xb0], bl
jne 0x403d08
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xe4]
push eax
call fcn.00402bb8
or eax, 0xffffffff
jmp 0x404645
push 4
call fcn.0040b095
pop ecx
cmp eax, ebx
je 0x403d1b
lea ecx, [ebp + 0x48]
mov dword [eax], ecx
jmp 0x403d1d
xor eax, eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov byte [ebp - 4], 2
call fcn.00403508
lea eax, [ebp - 0x88]
push eax
call fcn.0040346d
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004047ce
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
push ebx
lea ecx, [ebp + 8]
mov dword [0x41cf74], eax
mov dword [ebp + 0x20], 0xf
call fcn.004031b2
mov byte [ebp - 4], 4
cmp dword [ebp - 0xbc], 0x10
mov eax, dword [ebp - 0xd0]
jae 0x403d8a
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407771
pop ecx
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403e0b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 8]
call fcn.00403063
cmp dword [ebp + 0x1c], ebx
je 0x403e0b
mov edi, dword [ebp + 0x1c]
xor esi, esi
inc esi
dec edi
lea eax, [ebp + 8]
call fcn.0040468b
cmp byte [eax], 0x5c
jne 0x403e0e
mov eax, dword [ebp + 0x1c]
dec eax
push eax
push ebx
lea eax, [ebp + 8]
push eax
lea esi, [ebp + 0x24]
call fcn.0040473b
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00402fcf
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403082
jmp 0x403dc0
xor esi, esi
inc esi
mov eax, dword [ebp + 0xc]
push 0x10
pop edi
cmp dword [ebp + 0x20], edi
jae 0x403e1c
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.00407150
pop ecx
pop ecx
test al, al
jne 0x403e3b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp + 8]
call fcn.00402fcf
push dword [ebp + 0x70]
lea ecx, [ebp + 0x24]
call fcn.00402f56
push str.args
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00402f56
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 8
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 5
call fcn.00403082
push str.temp
lea ecx, [ebp + 0x24]
call fcn.00402f56
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 9
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 5
call fcn.00403082
push str.path
lea ecx, [ebp + 0x24]
call fcn.00402f56
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 5
call fcn.00403082
lea eax, [ebp - 0x48]
push 0x1a
push eax
call fcn.00407952
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], edi
jb 0x403f0b
mov eax, dword [eax + 4]
jmp 0x403f0e
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f56
push str.appdata
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0xc
call fcn.00402f56
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00403082
lea eax, [ebp - 0x48]
push 0x1c
push eax
call fcn.00407952
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], edi
jb 0x403f7d
mov eax, dword [eax + 4]
jmp 0x403f80
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f56
push str.appdata_local
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0xf
call fcn.00402f56
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00403082
lea eax, [ebp - 0x48]
push 0x26
push eax
call fcn.00407952
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], edi
jb 0x403fef
mov eax, dword [eax + 4]
jmp 0x403ff2
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f56
push str.program_files
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0x12
call fcn.00402f56
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x13
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00403082
lea eax, [ebp - 0x48]
push eax
call fcn.00407a9a
pop ecx
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x18], edi
jb 0x40405e
mov eax, dword [eax + 4]
jmp 0x404061
add eax, 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f56
push str.uniqueid
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 0x15
call fcn.00402f56
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040802d
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp - 0xa4]
call fcn.00403082
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00403082
and dword [ebp + 0x40], 0
and dword [ebp + 0x44], 0
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0xd8]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4042b7
xor eax, eax
sub esp, 0x58
mov edi, esp
lea esi, [edi + 0x1c]
mov dword [ebp + 0x64], esp
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call fcn.00402f43
lea esi, [edi + 0x38]
call fcn.00402f43
mov edi, dword [ebp + 0x44]
inc edi
push edi
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x64], edi
call fcn.00404b4d
mov eax, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
sub eax, esi
push 0x58
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp + 0x44]
ja 0x404171
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0x48]
call fcn.00402f56
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x18
call fcn.004027e0
mov dword [ebp - 0x118], 0x41a568
push 0x41b4e4
lea eax, [ebp - 0x118]
push eax
call fcn.0040f648
cmp esi, dword [ebp + 0x58]
jbe 0x40417b
call fcn.0040af86
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x44]
mov dword [ebp - 0x50], eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], esi
call fcn.00404bf3
mov esi, eax
call fcn.004088a0
mov esi, eax
mov dword [esi + 4], edi
mov dword [esi], ebx
test dword [ebx], 0x800
je 0x404206
call fcn.004082d9
test eax, eax
jne 0x4041bb
call fcn.00408226
test eax, eax
je 0x404206
or dword [ebx], 0x80000000
push 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x8c], 0xf
call fcn.004031b2
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x19
call fcn.004047ce
push 0
push 1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x17
call fcn.00403082
jmp 0x4042ac
test dword [ebx], 0x1000
je 0x40421f
lea edi, [esi + 0x1c]
push 0x41a8ec
mov ecx, edi
call fcn.00403063
jmp 0x40429d
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
lea edx, [ebp - 0xe4]
call fcn.00402c19
push 0xffffffffffffffff
push 0
lea edi, [esi + 0x1c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1a
call fcn.00402fcf
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x17
call fcn.00403082
cmp dword [esi + 0x30], 0
jne 0x404295
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ec_08x__extract_failed
mov ecx, esi
call fcn.00403722
test byte [ebx], 0x20
pop ecx
pop ecx
je 0x40429d
lea ecx, [ebp - 0xf0]
call fcn.0040ab27
push 0x41b4fc
lea eax, [ebp - 0xf0]
jmp 0x40416b
mov eax, dword [ebx]
and eax, 0x10
or dword [ebp + 0x40], eax
push edi
lea eax, [ebp - 0x88]
call fcn.004047ce
mov edi, dword [ebp + 0x64]
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 0x44], edi
jmp 0x4040dd
mov esi, dword [ebp + 0x54]
cmp esi, dword [ebp + 0x58]
jbe 0x4042c4
call fcn.0040af86
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], esi
mov esi, dword [ebp + 0x58]
cmp dword [ebp + 0x54], esi
jbe 0x4042da
call fcn.0040af86
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x4042e6
cmp eax, dword [ebp + 0x48]
je 0x4042eb
call fcn.0040af86
cmp dword [ebp + 0x64], esi
je 0x4043ae
lea esi, [ebp + 0x60]
call fcn.004088a0
mov eax, dword [eax]
test byte [eax], 2
je 0x40439e
call fcn.004088a0
cmp dword [eax + 0x30], 0
je 0x40439e
call fcn.004088a0
mov eax, dword [eax]
test dword [eax], 0x80000000
jne 0x40439e
call fcn.004088a0
mov eax, dword [eax]
test dword [eax], 0x800
je 0x404346
call fcn.004082d9
test eax, eax
jne 0x40439e
call fcn.00408226
test eax, eax
jne 0x40439e
lea esi, [ebp + 0x60]
call fcn.004088a0
mov eax, dword [eax]
push 1
lea ecx, [ebp - 0x88]
push ecx
push dword [eax + 0x1c]
lea eax, [ebp - 0x48]
push eax
call fcn.0040670b
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0x1b
call fcn.004088a0
push 0xffffffffffffffff
add eax, 0x38
push 0
push edi
mov ecx, eax
call fcn.00402fcf
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x17
call fcn.00403082
call fcn.004088a0
push eax
call fcn.004038aa
pop ecx
lea edi, [ebp]
lea esi, [ebp + 0x60]
call fcn.00404892
jmp 0x4042cd
cmp dword [ebp + 0x40], 0
je 0x404550
mov esi, dword [ebp + 0x54]
cmp esi, dword [ebp + 0x58]
jbe 0x4043c5
call fcn.0040af86
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], esi
mov esi, dword [ebp + 0x58]
cmp dword [ebp + 0x54], esi
jbe 0x4043db
call fcn.0040af86
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x4043e7
cmp eax, dword [ebp + 0x48]
je 0x4043ec
call fcn.0040af86
cmp dword [ebp + 0x64], esi
je 0x404436
lea esi, [ebp + 0x60]
call fcn.004088a0
cmp dword [eax + 8], 0
je 0x404429
call fcn.004088a0
mov eax, dword [eax]
test byte [eax], 8
je 0x404429
call fcn.004088a0
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004088a0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp]
lea esi, [ebp + 0x60]
call fcn.00404892
jmp 0x4043ce
mov esi, dword [ebp + 0x54]
cmp esi, dword [ebp + 0x58]
jbe 0x404443
call fcn.0040af86
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], esi
mov esi, dword [ebp + 0x58]
cmp dword [ebp + 0x54], esi
jbe 0x404459
call fcn.0040af86
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x404465
cmp eax, dword [ebp + 0x48]
je 0x40446a
call fcn.0040af86
cmp dword [ebp + 0x64], esi
je 0x404550
lea esi, [ebp + 0x60]
call fcn.004088a0
mov eax, dword [eax]
test byte [eax], 0x10
je 0x4044a7
call fcn.004088a0
cmp dword [eax + 0x30], 0
je 0x4044a7
call fcn.004088a0
cmp dword [eax + 0x34], 0x10
jb 0x40449d
mov eax, dword [eax + 0x20]
jmp 0x4044a0
add eax, 0x20
push eax
call fcn.00403530
pop ecx
lea edi, [ebp]
lea esi, [ebp + 0x60]
call fcn.00404892
jmp 0x40444c
mov dword [ebp - 4], 3
xor edi, edi
call fcn.00406141
jmp 0x404591
call fcn.00408e4e
push eax
lea ecx, [ebp + 8]
call fcn.00402f7a
call fcn.00408f07
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x40457f
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00403082
cmp dword [0x41cf94], edi
jne 0x404560
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0x1d
call fcn.00404837
lea esi, [ebp - 0x88]
call fcn.00404ac0
push dword [ebp - 0x88]
call fcn.0040afa1
mov eax, dword [ebp + 0x54]
pop ecx
cmp eax, edi
je 0x4045d5
push dword [ebp + 0x58]
call fcn.00405104
push dword [ebp + 0x54]
call fcn.0040afa1
pop ecx
push dword [ebp + 0x48]
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
call fcn.0040afa1
pop ecx
mov dword [ebp - 4], 0x1f
cmp dword [ebp - 0xb4], edi
je 0x404602
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0xa8], edi
je 0x404616
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xac], edi
je 0x40462a
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0xd4]
call fcn.00403082
lea eax, [ebp - 0xe4]
call fcn.004028f3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x68
leave
ret