Function at 0x408f30
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x334
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x245]
mov byte [esp + 0x244], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.LiteUnzip.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
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 + 0x244]
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 0x409198
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnzipOpenFileA
push ebp
call esi
push str.UnzipGetItemA
push ebp
mov dword [0x4157e8], eax
call esi
push str.UnzipItemToFileA
push ebp
mov dword [0x4157e4], eax
call esi
push str.UnzipClose
push ebp
mov dword [0x4157e0], eax
call esi
push str.UnzipFormatMessageA
push ebp
mov dword [0x4157dc], eax
call esi
mov ecx, dword [esp + 0x348]
push 0
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [0x4157d8], eax
call dword [0x4157e8]
test eax, eax
jne 0x409172
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 0xffffffff
call dword [0x4157e4]
test eax, eax
jne 0x409172
mov ecx, 0x3f
lea edi, [esp + 0x145]
mov byte [esp + 0x144], al
mov esi, dword [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
stosb byte es:[edi], al
jbe 0x409151
mov ebx, dword [esp + 0x34c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call dword [0x4157e4]
test eax, eax
jne 0x409140
mov ecx, 0x40
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x414e10
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x40]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00406c90
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
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
mov edx, dword [esp + 0x10]
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x144]
push eax
push ecx
push edx
call dword [0x4157e0]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, esi
mov dword [esp + 0x18], eax
jb 0x40906e
mov eax, dword [esp + 0x10]
push eax
call dword [0x4157dc]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
push 0
push 0
push str.UnZip_Err
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
push 0
push 0
push str.UnZip_null
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8