Function at 0x439da0
Capabilities:
Get disk information
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x439db4
invalid
mov bl, byte [ebp + 8]
movsx esi, bl
push esi
call fcn.0042b7b4
add esp, 4
test eax, eax
jne 0x439dd3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ax, word [0x4bd5a0]
mov ecx, 0x1f
mov word [ebp - 0x94], ax
xor eax, eax
lea edi, [ebp - 0x92]
push esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x94]
push str.___C:
push ecx
stosw word es:[edi], ax
call fcn.0042bb23
add esp, 0xc
lea edx, [ebp - 0x94]
push 0
push 0x4b0aac
push edx
push 0
call fcn.00441450
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jne 0x439e30
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b4ab4]
mov cl, byte [0x4bd5a4]
mov dword [ebp + 8], eax
mov byte [ebp - 0x19c], cl
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x19b]
lea edx, [ebp - 0x19c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x19c]
rep stosd dword es:[edi], eax
push 0x104
push edx
push 0
push 0
stosb byte es:[edi], al
push 0
push 0
lea eax, [ebp + 8]
push 0
push eax
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebp + 8], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x43a0aa
lea ecx, [ebp - 0x19c]
push 0x4b4ac0
push ecx
call fcn.0042c2c0
add esp, 8
test eax, eax
jne 0x439eb3
mov edi, dword [ebp + 0xc]
mov byte [edi], 7
jmp 0x439ed5
lea edx, [ebp - 0x19c]
push 0x4b4ab8
push edx
call fcn.0042c2c0
add esp, 8
test eax, eax
jne 0x43a0aa
mov edi, dword [ebp + 0xc]
mov byte [edi], 0xb
lea eax, [ebp - 0x54]
push 0x40
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push 0x560000
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
test eax, eax
jge 0x439f04
cmp eax, reloc.WSOCK32.dll_getpeername
jne 0x43a0aa
cmp dword [ebp - 0x54], 1
jne 0x43a0aa
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x3c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], eax
mov ecx, dword [0x4b4ab4]
lea edx, [ebp - 8]
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 8]
push edx
lea ecx, [ebp + 0xc]
push eax
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 0x10]
push edx
push eax
mov byte [ebp - 0x10], bl
mov dword [ebp + 8], 8
mov dword [ebp + 0xc], 0x200
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43a0aa
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00441a90
test al, al
je 0x43a0aa
mov edx, dword [ebp + 8]
push edx
call fcn.00441ae0
test al, al
je 0x43a0aa
mov cl, byte [edi]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp cl, 7
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], edx
sete cl
push eax
xor eax, eax
pop eax
je 0x439fad
invalid
test cl, cl
je 0x439fb9
lea eax, [edx + edx]
jmp 0x43a075
push ebx
call fcn.0048504f
mov esi, eax
add esp, 4
test esi, esi
je 0x43a0aa
mov eax, dword [ebp - 4]
push 0
push 0
push ebx
push esi
push eax
call fcn.004414b0
cmp eax, ebx
push esi
je 0x439fed
call fcn.00485078
add esp, 4
jmp 0x43a0aa
call fcn.0044a550
add esp, 4
test al, al
jne 0x43a007
push esi
call fcn.00485078
add esp, 4
jmp 0x43a0aa
mov cx, word [esi + 0xb]
mov dl, byte [esi + 0xd]
mov ax, word [esi + 0xe]
mov word [ebp - 0x44], cx
mov cl, byte [esi + 0x10]
mov byte [ebp - 0x42], dl
mov dx, word [esi + 0x16]
mov word [ebp - 0x40], ax
mov eax, dword [esi + 0x24]
push esi
mov byte [ebp - 0x3e], cl
mov word [ebp - 0x36], dx
mov dword [ebp - 0x28], eax
call fcn.00485078
add esp, 4
cmp word [ebp - 0x36], 0
jne 0x43a0aa
mov ecx, dword [ebp - 0x44]
and ecx, 0xffff
cmp ecx, ebx
jne 0x43a0aa
mov edx, dword [ebp - 0x42]
mov eax, dword [ebp + 8]
and edx, 0xff
cmp edx, eax
jne 0x43a0aa
mov eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0x40]
and eax, 0xff
and ecx, 0xffff
imul eax, dword [ebp - 0x28]
add eax, ecx
test eax, eax
je 0x43a0aa
mov edx, dword [edi + 0x1c]
push 0x11
shl edx, 1
sub eax, edx
mov edx, dword [ebp - 4]
mov dword [edi + 0x20], eax
lea eax, [ebp + 8]
push 4
lea ecx, [ebp - 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
test eax, eax
jl 0x43a0aa
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00441680
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8