Function at 0x4091c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x374
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.LiteZip.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x21c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x40938a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZipCreateFileA
push ebp
call esi
push str.ZipAddDirA
push ebp
mov dword [0x4157f8], eax
call esi
push str.ZipClose
push ebp
mov dword [0x4157f4], eax
call esi
push str.ZipFormatMessageA
push ebp
mov dword [0x4157f0], eax
call esi
mov dword [0x4157ec], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
lea edx, [esp + 0x118]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.C:WINDOWS_tmp_read_dirdg_isuse.zip
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [0x4157f8]
mov esi, eax
test esi, esi
jne 0x409372
mov esi, dword [esp + 0x384]
lea edx, [esp + 0x14]
mov ecx, 0x41
lea edi, [esp + 0x14]
push edx
push esi
rep stosd dword es:[edi], eax
call fcn.00406cd0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
mov edx, ecx
mov dword [esp + 0x10], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
dec edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [0x4157f4]
mov esi, eax
test esi, esi
je 0x409398
mov eax, dword [esp + 0xc]
push eax
call dword [0x4157f0]
lea ecx, [esp + 0x31c]
push 0x64
push ecx
push esi
call dword [0x4157ec]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x374
ret 8
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0xc]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x388]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x4157f0]
jmp 0x409383