Function at 0x405294
Capabilities:
Create directory
Delete file
Get common file path
Set current directory

Disassembly:
mov eax, 0x415c55
call fcn.0040cb10
mov eax, 0x1110
call fcn.0040cae0
push ebx
push esi
push edi
xor esi, esi
push 0x21c
mov edi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403643
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
push 2
mov dword [ebp - 4], esi
pop ebx
je 0x40530e
push 0x41c104
lea ecx, [ebp - 0x74]
call fcn.00402e73
mov dword [ebp - 0x10], 1
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040604a
mov dword [ebp - 0x10], 3
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.0040759f
mov esi, eax
mov dword [ebp + 0xc], esi
jmp 0x405311
mov dword [ebp + 0xc], esi
test esi, esi
mov dword [ebp - 0x68], esi
je 0x40531b
inc dword [esi + 4]
test byte [ebp - 0x10], bl
mov dword [ebp - 4], 7
je 0x405337
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x10], 0xfffffffd
test ecx, ecx
je 0x405337
call fcn.0040236b
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 6
je 0x405350
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x74]
call fcn.00402ef7
push 0xa8
call fcn.00403643
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405386
test esi, esi
mov dword [ebp - 0x18], esi
je 0x40536c
inc dword [esi + 4]
or dword [ebp - 0x10], 4
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0040839d
mov ebx, eax
mov dword [ebp - 0x14], ebx
jmp 0x40538d
and dword [ebp - 0x14], 0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
mov dword [ebp - 0x78], ebx
je 0x405397
inc dword [ebx + 4]
test byte [ebp - 0x10], 4
mov dword [ebp - 4], 0xc
je 0x4053b0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4053b0
call fcn.0040236b
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00406991
mov esi, dword [edi]
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040320c
push eax
push str.ArchiveComment
push edi
call dword [esi + 8]
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00402ef7
lea ecx, [ebp - 0x4c]
call fcn.00402dec
mov esi, 0x400
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.004031db
lea ecx, [ebp - 0x4c]
call fcn.0040320c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x405793
cmp eax, esi
jae 0x405793
lea ecx, [ebp - 0x24]
call fcn.00402dec
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004031db
lea ecx, [ebp - 0x24]
call fcn.0040320c
push eax
push 0
push 0x41cfc8
lea ecx, [ebp - 0x4c]
call fcn.0040320c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4054a1
call fcn.00403b87
mov esi, str.GetTempFileName___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.0040397d
push esi
lea ecx, [ebp - 0x94c]
call fcn.004049e8
push 0x7d0
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x111c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x111c]
push eax
call fcn.0040cb2f
lea ecx, [ebp - 0x24]
call fcn.0040320c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405502
call fcn.00403b87
mov esi, str.DeleteFile__temp__failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.0040397d
push esi
lea ecx, [ebp - 0x111c]
call fcn.004049e8
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f
push 0
lea ecx, [ebp - 0x24]
call fcn.0040320c
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405565
call fcn.00403b87
mov esi, str.CreateDirectory__temp__failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.0040397d
push esi
lea ecx, [ebp - 0x111c]
call fcn.004049e8
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0040377d
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x10
je 0x405581
cmp byte [eax], 0
jne 0x4055f4
lea eax, [ebp - 0x17c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4055e5
call fcn.00403b87
mov esi, str.GetCurrentDirectory___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.0040397d
push esi
lea ecx, [ebp - 0x111c]
call fcn.004049e8
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402f05
mov esi, dword [edi]
lea ecx, [ebp - 0x30]
call fcn.0040320c
push eax
push str.SourceDir
push edi
call dword [esi + 8]
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x58]
call fcn.004038d1
push 0x800
push dword [ebp + 0x14]
mov ecx, ebx
mov byte [ebp - 4], 0x11
mov dword [edi + 0x2c], 1
call fcn.004086f7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x40567d
call fcn.00403b87
push str.Couldnt_verify_signature_on_archive.
lea ecx, [ebp - 0x111c]
call fcn.00402331
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x64]
call fcn.0040384c
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00403925
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.00403754
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x40]
inc bl
mov byte [ebp - 4], 0x12
call fcn.00402ef7
test bl, bl
je 0x4056ff
call fcn.00403b87
push str.Couldnt_find_application_module_in_archive.
lea ecx, [ebp - 0x111c]
call fcn.00402331
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.00403925
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.0040501d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00402ef7
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x11
call fcn.00402ef7
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.00402ef7
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.00402ef7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00402ef7
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00402ef7
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 6
je 0x405772
call fcn.0040236b
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x405782
call fcn.0040236b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
call fcn.00403b87
mov esi, str.GetTempPath___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.0040397d
push esi
lea ecx, [ebp - 0x111c]
call fcn.004049e8
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3d0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb2f