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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421f62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x56c4
call fcn.0041f9d0
and dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, 0x424da8
push esi
push str.ArchiveComment
push edi
call dword [eax + 8]
mov eax, dword [edi]
add esp, 0xc
push esi
push str.WorkingDir
push edi
call dword [eax + 8]
mov eax, dword [edi]
add esp, 0xc
push esi
push str.Source
push edi
call dword [eax + 8]
and dword [edi + 0x30], 0
add esp, 0xc
push 0x21c
call fcn.00405611
mov ebx, eax
pop ecx
mov dword [esp + 0x18], ebx
and dword [esp + 0x56dc], 0
test ebx, ebx
push 3
pop esi
je 0x406d85
push 0x42518c
lea eax, [esp + 0x94]
push eax
call fcn.0040585f
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x56e0], 1
push eax
mov dword [esp + 0x18], 1
call fcn.00406a33
push dword [ebp + 0xc]
mov dword [esp + 0x14], esi
call fcn.0040cea1
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x406d8e
and dword [esp + 0x14], 0
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov dword [esp + 0x68], ebx
je 0x406d99
inc dword [ebx + 4]
mov dword [esp + 0x56dc], esi
test byte [esp + 0x10], 2
je 0x406db5
and dword [esp + 0x10], 0xfffffffd
lea eax, [esp + 0x28]
call fcn.00407b25
mov byte [esp + 0x56dc], 4
test byte [esp + 0x10], 1
je 0x406dd5
and dword [esp + 0x10], 0xfffffffe
lea esi, [esp + 0x90]
call fcn.00408361
push 0xac
call fcn.00405611
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x406e13
test ebx, ebx
mov dword [esp + 0x24], ebx
je 0x406df3
inc dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x56e0], 6
or dword [esp + 0x14], 4
push eax
call fcn.004092d0
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x406e1c
and dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
mov dword [esp + 0x6c], ebx
je 0x406e27
inc dword [ebx + 4]
mov dword [esp + 0x56dc], 9
test byte [esp + 0x10], 4
je 0x406e42
lea eax, [esp + 0x24]
call fcn.00407b25
mov esi, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xa4]
mov ecx, esi
xor edx, edx
cmp ecx, eax
je 0x406e6c
add edx, dword [ecx + 4]
add ecx, 0x20
cmp ecx, eax
jne 0x406e56
cmp edx, 0x1c9c380
ja 0x4073c3
mov edx, esi
xor ecx, ecx
cmp edx, eax
je 0x406e8a
add ecx, dword [edx + 8]
add edx, 0x20
cmp edx, eax
jne 0x406e74
cmp ecx, 0x8f0d180
ja 0x4073c3
lea eax, [esp + 0xc0]
push eax
mov eax, ebx
call fcn.00406a78
mov byte [esp + 0x56dc], 0xa
mov eax, dword [eax + 4]
mov ecx, dword [edi]
push eax
push str.ArchiveComment
push edi
call dword [ecx + 8]
add esp, 0xc
lea esi, [esp + 0xc0]
mov byte [esp + 0x56dc], 9
call fcn.00408361
lea ecx, [esp + 0x58]
call fcn.00405820
mov edi, 0x400
push edi
lea esi, [esp + 0x5c]
mov byte [esp + 0x56e0], 0xb
call fcn.00405ba3
push dword [esp + 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40739b
cmp eax, edi
jae 0x40739b
lea ecx, [esp + 0x3c]
call fcn.00405820
push edi
lea esi, [esp + 0x40]
mov byte [esp + 0x56e0], 0xc
call fcn.00405ba3
push dword [esp + 0x40]
push 0
push 0x426134
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406f5f
call fcn.004053bd
push str.GetTempFileName___failed.
lea eax, [esp + 0x1854]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x1854]
push eax
call fcn.0041189b
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406f92
call fcn.004053bd
push str.DeleteFile__temp__failed.
lea eax, [esp + 0x4734]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x4734]
jmp 0x406f59
push 0
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406fc7
call fcn.004053bd
push str.CreateDirectory__temp__failed.
lea eax, [esp + 0xe4]
push eax
call section..text
push 0x428150
lea eax, [esp + 0xe4]
jmp 0x406f59
lea eax, [esp + 0x3c]
push eax
lea edi, [esp + 0x30]
call fcn.00404018
mov esi, dword [ebp + 8]
mov byte [esp + 0x56dc], 0xd
push dword [esp + 0x30]
mov eax, dword [esi]
push str.WorkingDir
push esi
call dword [eax + 8]
mov eax, dword [esi]
add esp, 0xc
push dword [0x4308c8]
push str.Source
push esi
call dword [eax + 8]
add esp, 0xc
lea eax, [esp + 0x4c]
xor edi, edi
push eax
inc edi
push ebx
mov dword [esi + 0x30], edi
call fcn.004095a4
mov byte [esp + 0x56dc], 0xe
mov eax, dword [0x42f758]
test eax, eax
je 0x407093
lea eax, [esp + 0x4c]
mov byte [esp + 0x56dc], 0xd
call fcn.00407cbd
lea esi, [esp + 0x2c]
call fcn.00408361
lea esi, [esp + 0x3c]
call fcn.00408361
lea esi, [esp + 0x58]
call fcn.00408361
mov byte [esp + 0x56dc], 4
dec dword [ebx + 4]
cmp dword [ebx + 4], 0
jg 0x40706c
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax]
mov ecx, dword [esp + 0x14]
or dword [esp + 0x56dc], 0xffffffff
test ecx, ecx
je 0x407384
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x407384
push edi
jmp 0x407380
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
jne 0x4070c8
call fcn.004053bd
push str.Couldnt_verify_signature_on_archive.
lea eax, [esp + 0x3794]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x3794]
jmp 0x406f59
mov eax, dword [esp + 0x50]
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 0x18], ebx
je 0x407188
push 0x4261b8
lea eax, [esp + 0x84]
push eax
call fcn.0040585f
lea eax, [esp + 0xa0]
lea edi, [ebx + 0xc]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x56e0], 0xf
call fcn.00401265
lea ecx, [esp + 0x80]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x56e8], 0x10
call fcn.00406a54
lea esi, [esp + 0xa0]
call fcn.00408361
lea esi, [esp + 0x80]
mov byte [esp + 0x56dc], 0x13
call fcn.00408361
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jne 0x40714e
xor eax, eax
jmp 0x407153
mov eax, dword [ebx + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push eax
push dword [ebx + 0x20]
call dword [edx + 4]
lea eax, [esp + 0x20]
mov byte [esp + 0x56dc], 0xe
call fcn.00407b25
lea eax, [esp + 0x18]
call fcn.00407b3b
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x50]
jne 0x4070da
lea eax, [esp + 0x70]
push eax
call fcn.00403f9f
lea eax, [esp + 0xb0]
push eax
lea edi, [esp + 0x74]
lea ecx, [esp + 0x30]
mov byte [esp + 0x56e0], 0x14
call fcn.00401265
call fcn.00403e8c
mov ebx, eax
neg ebx
sbb bl, bl
lea esi, [esp + 0xb0]
inc bl
call fcn.00408361
test bl, bl
je 0x4071f4
call fcn.004053bd
push str.Couldnt_find_application_module_in_archive.
lea eax, [esp + 0x27f4]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x27f4]
jmp 0x406f59
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40722a
call fcn.004053bd
push str.Couldnt_set_working_directory.
lea eax, [esp + 0x8b4]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x8b4]
jmp 0x406f59
lea eax, [esp + 0xd0]
push eax
lea edi, [esp + 0x74]
lea ecx, [esp + 0x30]
call fcn.00401265
mov edi, dword [ebp + 8]
add edi, 0x10
mov ebx, eax
mov esi, edi
mov byte [esp + 0x56dc], 0x15
call fcn.00409011
lea esi, [esp + 0xd0]
mov byte [esp + 0x56dc], 0x14
call fcn.00408361
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.createClient
push dword [edi]
call ebx
mov esi, dword [ebp + 8]
push str.destroyClient
push dword [edi]
mov dword [esi + 4], eax
call ebx
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esi + 8], eax
jne 0x4072ba
call fcn.004053bd
push str.Couldnt_find_createClient___in_client_DLL.
lea eax, [esp + 0x1084]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x1084]
jmp 0x406f59
test eax, eax
jne 0x4072e6
call fcn.004053bd
push str.Couldnt_find_destroyClient___in_client_DLL.
lea eax, [esp + 0x2024]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x2024]
jmp 0x406f59
push esi
call ecx
test eax, eax
pop ecx
mov dword [esi + 0xc], eax
jne 0x407319
call fcn.004053bd
push str.createClient___failed.
lea eax, [esp + 0x2fc4]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x2fc4]
jmp 0x406f59
lea esi, [esp + 0x70]
call fcn.00408361
lea eax, [esp + 0x4c]
mov byte [esp + 0x56dc], 0xd
call fcn.00407cbd
lea esi, [esp + 0x2c]
call fcn.00408361
lea esi, [esp + 0x3c]
call fcn.00408361
lea esi, [esp + 0x58]
call fcn.00408361
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x56dc], 4
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x407369
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x14]
or dword [esp + 0x56dc], 0xffffffff
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x407384
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x56d4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004053bd
push str.GetTempPath___failed.
lea eax, [esp + 0x3f64]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x3f64]
jmp 0x406f59
call fcn.004053bd
push str.Sanity_check_on_archive_file_sizes_failed.
lea eax, [esp + 0x4f04]
push eax
call section..text
push 0x428150
lea eax, [esp + 0x4f04]
jmp 0x406f59