Function at 0x10004620
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x798
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.lstrlenA
mov dword [esp + 0x44], ecx
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetVolumeInformationA
push str.KERNEL32.dll
mov dword [esp + 0x3c], eax
call edi
push eax
call ebx
push str.GetLogicalDriveStringsA
push str.KERNEL32.dll
mov dword [esp + 0x44], eax
call edi
push eax
call ebx
lea ecx, [esp + 0x148]
mov byte [esp + 0x3a8], 0x67
push ecx
push pe_nt_image_headers32
call eax
xor eax, eax
push str.Shell32.dll
lea ebp, [esp + 0x14c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call edi
mov esi, eax
push str.SHGetFileInfoA
push esi
mov dword [esp + 0x34], esi
call ebx
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x148]
test al, al
mov dword [esp + 0x10], 1
je 0x10004858
jmp 0x100046dd
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.lstrlenA
push str.KERNEL32.dll
call edi
push eax
call ebx
push str.GetDiskFreeSpaceExA
push str.KERNEL32.dll
mov esi, eax
call edi
push eax
call ebx
push str.GetDriveTypeA
push str.KERNEL32.dll
mov dword [esp + 0x1c], eax
call edi
push eax
call ebx
mov dword [esp + 0x30], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x44]
push 0x104
xor edi, edi
push edx
push edi
push edi
push edi
push edi
push edi
push ebp
call dword [esp + 0x5c]
push 0x410
lea eax, [esp + 0x24c]
push 0x160
push eax
push 0x80
push ebp
call dword [esp + 0x4c]
lea ecx, [esp + 0x358]
push ecx
call esi
lea edx, [esp + 0x44]
mov ebx, eax
push edx
inc ebx
call esi
inc eax
mov dword [esp + 0x18], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x100047b7
cmp al, 0x42
je 0x100047b7
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
call dword [esp + 0x24]
test eax, eax
je 0x100047b7
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, 0x14
call fcn.10015690
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.10015690
mov dword [esp + 0x14], eax
jmp 0x100047bb
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x10]
mov dl, byte [ebp]
push ebp
mov byte [esp + esi + 0x3ac], dl
call dword [esp + 0x34]
mov byte [esp + esi + 0x3a9], al
mov eax, dword [esp + 0x14]
mov dword [esp + esi + 0x3aa], edi
mov dword [esp + esi + 0x3ae], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x358]
lea edi, [esp + eax + 0x3b2]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + eax]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [esp + edx + 0x3b6]
mov edx, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, ebx
lea edx, [eax + ecx + 0xa]
mov dword [esp + 0x14], edx
call dword [esp + 0x38]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x100046d1
mov esi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.FreeLibrary
push str.KERNEL32.dll
call edi
push eax
call ebx
push esi
call eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3a8]
push eax
push ecx
mov ecx, dword [esp + 0x48]
call fcn.10008be0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x798
ret