Function at 0x4199f0
Capabilities:
Access peb ldr_data
Get disk information
Get disk size
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1e78
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4ed4e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor edi, edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x28], edi
call fcn.00419cf0
mov dword [esp + 0x58], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.00401bb0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419a88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x419c05
jmp 0x419aa0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 2
movzx ecx, word [edi + esi*2]
push ecx
lea edx, [esp + 0x18]
push 0x4c4b00
push edx
call fcn.00407760
mov cx, word [edi + esi*2]
add esp, 0xc
lea ebx, [esp + 0x28]
call fcn.0041a190
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, 0x4c4b08
mov byte [esp + 0x60], 3
call fcn.00406680
add esp, 8
mov byte [esp + 0x58], 4
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x419c3b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0048652c
add esp, 8
test eax, eax
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419b46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x419b7d
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x419bdd
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x419bd5
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x419bd5
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x30]
jb 0x419bd5
mov eax, dword [esp + 0x34]
ja 0x419bbd
cmp eax, dword [esp + 0x2c]
jbe 0x419bd5
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x30], ecx
call fcn.00404de0
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x58], 1
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, dword [esp + 0x20]
jl 0x419aa0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
lea eax, [esp + 0x1c]
je 0x419c13
lea eax, [esp + 0x18]
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x419c45
cmp eax, dword [esi - 0x10]
jne 0x419c45
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419c7e
push 0x80004005
call fcn.00401a60
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x419c5e
call fcn.0040ca60
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004855a6
add esp, 0x10
mov esi, dword [ebp + 8]
add edi, 0x10
lea eax, [ebx - 0x10]
mov dword [esi], edi
mov byte [esp + 0x58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret