Function at 0x5fd338
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb7c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x384], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x2c4], ebx
mov byte [ebp - 0x2f1], cl
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x29c], eax
xor eax, eax
push ebp
push 0x5fdcd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
cmp dword [ebp - 0x29c], 0
jl 0x5fdcad
cmp dword [ebp - 0x29c], 0xef
jge 0x5fdcad
mov eax, dword [0x89285c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x29c]
jle 0x5fd579
mov eax, dword [ebp - 0x29c]
lea eax, [eax + eax*4]
mov edx, dword [0x893588]
cmp byte [edx + eax*2], 0
je 0x5fd440
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax*4 + 0x13b4254]
cdq
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jne 0x5fd411
cmp dword [ebp - 0x2a8], 0
jb 0x5fdcad
jmp 0x5fd417
jl 0x5fdcad
push 0
push 0x100000
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
jmp 0x5fdcad
imul eax, dword [ebp - 0x29c], 0x9f
mov edx, dword [0x892eb0]
cmp dword [edx + eax*2], 1
jne 0x5fd4f9
imul eax, dword [ebp - 0x29c], 0xd
mov edx, dword [0x892fd0]
fld qword [edx + eax*8 + 0x28]
call fcn.00402d78
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
imul eax, dword [ebp - 0x29c], 0xd
mov edx, dword [0x892fd0]
cmp word [edx + eax*8 + 0x10], 0x1000
jne 0x5fd4b8
push 0
push 0x1000
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
jmp 0x5fd4dc
push 0
push 0x200
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jne 0x5fd4f3
cmp dword [ebp - 0x2a8], 0
jbe 0x5fd4f9
jmp 0x5fdcad
jg 0x5fdcad
imul eax, dword [ebp - 0x29c], 0x9f
mov edx, dword [0x892eb0]
cmp dword [edx + eax*2], 2
jne 0x5fd579
imul eax, dword [ebp - 0x29c], 0xafc
mov edx, dword [0x892558]
mov ecx, dword [edx + eax*8 + 0x440]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [edx + eax*8 + 0x444]
mov dword [ebp - 0x2a4], ecx
imul eax, dword [ebp - 0x29c], 0xafc
mov edx, dword [0x892558]
push dword [edx + eax*8 + 0x44c]
push dword [edx + eax*8 + 0x448]
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
jmp 0x5fdcad
xor eax, eax
push ebp
push 0x5fd5ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x29c], 0
jl 0x5fd5e0
mov eax, dword [0x89285c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x29c]
jle 0x5fd5e0
imul eax, dword [ebp - 0x29c], 0x83
mov edx, dword [0x892da8]
add edx, eax
mov eax, 0x5fdcf4
call fcn.00402c6c
test eax, eax
jle 0x5fd5e0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fdcad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5fd5f4
mov eax, dword [0x893580]
cmp dword [eax], 2
je 0x5fd639
mov al, byte [ebp - 0x29c]
lea edx, [ebp - 0x378]
call fcn.005996b0
test al, al
je 0x5fdcad
fld qword [ebp - 0x350]
fmul dword [0x5fdcfc]
call fcn.00402d78
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
jmp 0x5fdcad
mov eax, dword [0x89254c]
mov edx, dword [ebp - 0x29c]
cmp byte [eax + edx], 0
jne 0x5fd732
mov eax, dword [0x8929d8]
mov edx, dword [ebp - 0x29c]
mov eax, dword [eax + edx*4]
call fcn.0040554c
cmp eax, 0x80
jle 0x5fd732
mov eax, dword [ebp - 0x29c]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [0x892b2c]
cmp byte [edx + eax], 0
je 0x5fd732
cmp byte [ebp + 8], 0
je 0x5fd732
imul eax, dword [ebp - 0x29c], 0xd
mov edx, dword [0x892fd0]
fld qword [edx + eax*8 + 0x28]
call fcn.00402d78
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
imul eax, dword [ebp - 0x29c], 0xd
mov edx, dword [0x892fd0]
cmp word [edx + eax*8 + 0x10], 0x1000
jne 0x5fd6f1
push 0
push 0x1000
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
jmp 0x5fd715
push 0
push 0x200
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jne 0x5fd72c
cmp dword [ebp - 0x2a8], 0
jbe 0x5fd732
jmp 0x5fdcad
jg 0x5fdcad
mov eax, dword [0x89254c]
mov edx, dword [ebp - 0x29c]
cmp byte [eax + edx], 0
je 0x5fd7f5
mov eax, dword [ebp - 0x29c]
call fcn.005ead00
cmp eax, 0x1001
jl 0x5fd7f5
mov eax, dword [ebp - 0x29c]
call fcn.005ead00
cmp eax, 0x1080
jg 0x5fd7f5
imul eax, dword [ebp - 0x29c], 0xafc
mov edx, dword [0x892558]
mov ecx, dword [edx + eax*8 + 0x440]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [edx + eax*8 + 0x444]
mov dword [ebp - 0x2a4], ecx
imul eax, dword [ebp - 0x29c], 0xafc
mov edx, dword [0x892558]
push dword [edx + eax*8 + 0x44c]
push dword [edx + eax*8 + 0x448]
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jne 0x5fd7ef
cmp dword [ebp - 0x2a8], 0
jbe 0x5fd7f5
jmp 0x5fdcad
jg 0x5fdcad
cmp byte [ebp + 8], 0
je 0x5fd80c
mov eax, dword [ebp - 0x29c]
call fcn.005dbe4c
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2bc], 0x80000000
cmp dword [ebp - 0x2a0], 2
jne 0x5fd829
add dword [ebp - 0x2bc], 0x40000000
lea eax, [ebp - 0x310]
xor ecx, ecx
mov edx, 0x18
call fcn.00403464
push 0
push 0
push 3
push 0
push 3
mov eax, dword [ebp - 0x2bc]
push eax
lea edx, [ebp - 0x380]
mov eax, dword [ebp - 0x29c]
call fcn.0040a78c
mov ecx, dword [ebp - 0x380]
lea eax, [ebp - 0x37c]
mov edx, 0x5fdd08
call fcn.00405598
mov eax, dword [ebp - 0x37c]
call fcn.0040574c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0xffffffff
jne 0x5fd8fe
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x20
jne 0x5fd8b7
inc dword [ebp - 0x2c0]
push 0xa
call sub.kernel32.dll_Sleep_1
cmp dword [ebp - 0x2c0], 0x14
jl 0x5fd829
mov eax, dword [0x892324]
mov edx, dword [ebp - 0x29c]
cmp dword [eax + edx*8 + 4], 0
jne 0x5fd8d5
cmp dword [eax + edx*8], 0
jbe 0x5fdcad
jmp 0x5fd8db
jle 0x5fdcad
mov eax, dword [0x892324]
mov edx, dword [ebp - 0x29c]
mov ecx, dword [eax + edx*8]
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x2a4], ecx
jmp 0x5fdcad
cmp dword [ebp - 0x2a0], 1
jne 0x5fd918
call fcn.005fce84
test al, al
je 0x5fd918
xor eax, eax
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 1
jne 0x5fd9c7
lea eax, [ebp - 0x384]
call fcn.004c2834
mov eax, dword [ebp - 0x384]
mov edx, 0x5fdd24
call fcn.00405698
jb 0x5fd9bd
push 0
lea eax, [ebp - 0x2b0]
push eax
push 8
lea eax, [ebp - 0x2d8]
push eax
push 0
push 0
push 0x7405c
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2c5], al
cmp byte [ebp - 0x2c5], 0
je 0x5fd9bd
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
jne 0x5fd9aa
cmp dword [ebp - 0x2a8], 0
jbe 0x5fd9bd
jmp 0x5fd9ac
jle 0x5fd9bd
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5fdcad
mov dword [ebp - 0x2a0], 2
cmp dword [ebp - 0x2a0], 2
jne 0x5fdb52
lea eax, [ebp - 0x298]
xor ecx, ecx
mov edx, 0x298
call fcn.00403464
mov word [ebp - 0x298], 0x2c
mov byte [ebp - 0x294], 1
mov byte [ebp - 0x292], 0xa
mov byte [ebp - 0x291], 0x18
mov byte [ebp - 0x290], 1
mov dword [ebp - 0x28c], 0xc0
mov dword [ebp - 0x288], 2
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x298]
sub eax, edx
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x26c]
lea edx, [ebp - 0x298]
sub eax, edx
mov dword [ebp - 0x280], eax
mov byte [ebp - 0x27c], 0x25
mov eax, dword [ebp - 0x284]
add eax, dword [ebp - 0x28c]
mov dword [ebp - 0x2ac], eax
push 0
lea eax, [ebp - 0x2b0]
push eax
mov eax, dword [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x298]
push eax
push 0x2c
lea eax, [ebp - 0x298]
push eax
push 0x4d004
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x5fdb52
lea eax, [ebp - 0x24c]
xor ecx, ecx
mov edx, 0x1ff
call fcn.004c0ef4
xor edx, edx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
cmp dword [ebp - 0x2a4], 0
jne 0x5fdae1
cmp dword [ebp - 0x2a8], 0xffffffff
jne 0x5fdae1
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
jmp 0x5fdb52
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
add eax, 1
adc edx, 0
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
lea eax, [ebp - 0x24c]
mov ecx, 4
mov edx, 0x1ff
call fcn.004c0ef4
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a4]
call fcn.004062e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x5fdcad
push 0
lea eax, [ebp - 0x2b0]
push eax
push 0x18
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x70000
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x2c5], al
mov eax, dword [ebp - 0x2cc]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 0x2c5], 0
je 0x5fdcad
push dword [ebp - 0x30c]
push dword [ebp - 0x310]
lea eax, [ebp - 0x484]
call fcn.00406504
lea edx, [ebp - 0x484]
lea eax, [ebp - 0x2c4]
call fcn.004054f0
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x300]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x304]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2b4]
call fcn.004062e8
call fcn.004062e8
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x2fc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2b8]
mov edx, dword [ebp - 0x2b4]
call fcn.004062e8
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2a4], eax
call fcn.005fce84
test al, al
je 0x5fdcad
lea ecx, [ebp - 0x2f0]
lea edx, [ebp - 0x2e8]
mov eax, dword [ebp - 0x29c]
call fcn.005fd03c
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], edx
cmp dword [ebp - 0x2dc], 0
jne 0x5fdc93
cmp dword [ebp - 0x2e0], 0
jbe 0x5fdcad
jmp 0x5fdc95
jle 0x5fdcad
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2a4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fdcdd
lea eax, [ebp - 0x384]
mov edx, 3
call fcn.004052b0
lea eax, [ebp - 0x2c4]
call fcn.0040528c
ret