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

Disassembly:
mov eax, 0x415c65
call fcn.0040cb20
mov eax, 0x1110
call fcn.0040caf0
push ebx
push esi
push edi
xor esi, esi
push 0x21c
mov edi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040360d
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
push 2
mov dword [ebp - 4], esi
pop ebx
je 0x405314
push 0x41c104
lea ecx, [ebp - 0x74]
call fcn.00402e4c
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.00406050
mov dword [ebp - 0x10], 3
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.004075a5
mov esi, eax
mov dword [ebp + 0xc], esi
jmp 0x405317
mov dword [ebp + 0xc], esi
test esi, esi
mov dword [ebp - 0x68], esi
je 0x405321
inc dword [esi + 4]
test byte [ebp - 0x10], bl
mov dword [ebp - 4], 7
je 0x40533d
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x10], 0xfffffffd
test ecx, ecx
je 0x40533d
call fcn.00402371
test byte [ebp - 0x10], 1
mov dword [ebp - 4], 6
je 0x405356
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x74]
call fcn.00402ed0
push 0xa8
call fcn.0040360d
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40538c
test esi, esi
mov dword [ebp - 0x18], esi
je 0x405372
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.004083a3
mov ebx, eax
mov dword [ebp - 0x14], ebx
jmp 0x405393
and dword [ebp - 0x14], 0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
mov dword [ebp - 0x78], ebx
je 0x40539d
inc dword [ebx + 4]
test byte [ebp - 0x10], 4
mov dword [ebp - 4], 0xc
je 0x4053b6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4053b6
call fcn.00402371
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00406997
mov esi, dword [edi]
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.004031e5
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.00402ed0
lea ecx, [ebp - 0x4c]
call fcn.00402dc5
mov esi, 0x400
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
call fcn.004031b4
lea ecx, [ebp - 0x4c]
call fcn.004031e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x405799
cmp eax, esi
jae 0x405799
lea ecx, [ebp - 0x24]
call fcn.00402dc5
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004031b4
lea ecx, [ebp - 0x24]
call fcn.004031e5
push eax
push 0
push 0x41cfc8
lea ecx, [ebp - 0x4c]
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4054a7
call fcn.00403b51
mov esi, str.GetTempFileName___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.00403947
push esi
lea ecx, [ebp - 0x94c]
call fcn.0040484a
push 0x7d0
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x111c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x111c]
push eax
call fcn.0040cb3f
lea ecx, [ebp - 0x24]
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405508
call fcn.00403b51
mov esi, str.DeleteFile__temp__failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.00403947
push esi
lea ecx, [ebp - 0x111c]
call fcn.0040484a
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f
push 0
lea ecx, [ebp - 0x24]
call fcn.004031e5
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40556b
call fcn.00403b51
mov esi, str.CreateDirectory__temp__failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.00403947
push esi
lea ecx, [ebp - 0x111c]
call fcn.0040484a
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00403747
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x10
je 0x405587
cmp byte [eax], 0
jne 0x4055fa
lea eax, [ebp - 0x17c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4055eb
call fcn.00403b51
mov esi, str.GetCurrentDirectory___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.00403947
push esi
lea ecx, [ebp - 0x111c]
call fcn.0040484a
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402ede
mov esi, dword [edi]
lea ecx, [ebp - 0x30]
call fcn.004031e5
push eax
push str.SourceDir
push edi
call dword [esi + 8]
add esp, 0xc
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x58]
call fcn.004038f3
push 0x800
push dword [ebp + 0x14]
mov ecx, ebx
mov byte [ebp - 4], 0x11
mov dword [edi + 0x2c], 1
call fcn.004086fd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x405683
call fcn.00403b51
push str.Couldnt_verify_signature_on_archive.
lea ecx, [ebp - 0x111c]
call fcn.00402337
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x64]
call fcn.00403816
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.0040389b
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.0040371e
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x40]
inc bl
mov byte [ebp - 4], 0x12
call fcn.00402ed0
test bl, bl
je 0x405705
call fcn.00403b51
push str.Couldnt_find_application_module_in_archive.
lea ecx, [ebp - 0x111c]
call fcn.00402337
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x40]
call fcn.0040389b
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.00405023
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call fcn.00402ed0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x11
call fcn.00402ed0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x10
call fcn.00402ed0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.00402ed0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00402ed0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00402ed0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 6
je 0x405778
call fcn.00402371
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x405788
call fcn.00402371
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
call fcn.00403b51
mov esi, str.GetTempPath___failed.
mov edx, esi
mov ecx, str.Exception_created:
call fcn.00403947
push esi
lea ecx, [ebp - 0x111c]
call fcn.0040484a
push 0x7d0
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x94c]
push eax
call fcn.0040c3e0
add esp, 0xc
push 0x419c40
lea eax, [ebp - 0x94c]
push eax
call fcn.0040cb3f