Function at 0x445630
Capabilities:
Get disk size
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5b2b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x63a800]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.00401150
push 0x1008
mov byte [ebp - 4], 1
call fcn.004898a6
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
test edi, edi
je 0x445a5c
push 0xc08
call fcn.004898a6
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4456ba
push edi
call fcn.0048989b
add esp, 4
jmp 0x445a5c
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4456d9
push 0
lea ecx, [ebp - 0x68]
call fcn.00432990
mov edx, dword [ebp - 0x68]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
call esi
mov dword [ebp - 0x30], eax
cmp ebx, 0xffffffff
jne 0x445731
push edi
call fcn.0048989b
mov edx, dword [ebp - 0x34]
push edx
call fcn.0048989b
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.004016a0
lea ecx, [ebp + 0xc]
call fcn.004016a0
mov eax, dword [ebp - 0x30]
jmp 0x445a72
push 0x1008
push 0
push edi
mov dword [ebp - 0x78], ebx
call fcn.005afd80
add esp, 0xc
push 0
lea eax, [ebp - 0xc0]
push eax
push 0x1008
push edi
push 0
push 0
push 0x2d0c04
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x30], eax
call esi
xor eax, eax
cmp dword [ebp - 0x30], eax
jne 0x44580d
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0x18
lea edx, [ebp - 0x2c]
push edx
push eax
push eax
push 0x70000
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x3c], eax
call esi
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
jne 0x4457ae
mov edx, 1
mov ecx, 0x200
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
xor eax, eax
jmp 0x4457cd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4457f7
cmp dword [ebp - 0x20], 0
je 0x4457f7
cmp dword [ebp - 0x1c], 0
je 0x4457f7
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov esi, edx
or esi, eax
je 0x4457f7
mov esi, edx
mov edx, dword [ebp - 0x20]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], eax
jmp 0x44586c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0048989b
mov eax, dword [ebp - 0x34]
push eax
jmp 0x44570e
lea esi, [edi + 8]
mov ecx, 8
lea edi, [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x445a3d
mov edx, dword [ebp - 0xa8]
test edx, edx
je 0x445a3d
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x445a3d
mov esi, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb0]
mov ebx, esi
or ebx, edi
je 0x445a3d
mov ebx, dword [ebp - 0x3c]
mul edx
push 0
push ecx
push edx
push eax
call fcn.005af0e0
push edi
push esi
push edx
push eax
call fcn.005af0e0
mov dword [ebp - 0xbc], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc4]
push ecx
push 8
mov dword [ebp - 0xb8], edx
lea edx, [ebp - 0x44]
push edx
push eax
push eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
push 0x7405c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4458e3
cmp dword [ebp - 0xb8], 0x10000
ja 0x44591d
jb 0x4458cf
cmp dword [ebp - 0xbc], 0
jae 0x44591d
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], edx
jmp 0x44591d
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44591d
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10000
ja 0x44591d
mov eax, dword [ebp - 0x54]
jb 0x445906
test eax, eax
jae 0x44591d
test ecx, ecx
jne 0x445911
cmp eax, 0x100000
jb 0x44591d
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax - 0xc], 0
mov esi, 1
jl 0x44598e
push 0x60e654
push eax
call fcn.005ae17f
add esp, 8
test eax, eax
je 0x44598e
sub eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
je 0x44598e
lea ecx, [ebp - 0x30]
call fcn.00432c10
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x78]
lea edx, [ebp - 0x30]
call fcn.00468820
test eax, eax
je 0x44596c
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004327f0
lea edx, [ebp + 0x68]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.0044fda0
add esp, 8
test al, al
je 0x445982
xor esi, esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00432bf0
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [ebp + 0x44]
jne 0x445a3d
mov edx, dword [ebp - 0xbc]
cmp edx, dword [ebp + 0xc]
jne 0x445a3d
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp + 0x10]
jne 0x445a3d
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp + 0x28]
jne 0x445a3d
test esi, esi
je 0x445a3d
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0xbc]
call fcn.004010b0
mov edx, dword [ebp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [ebp + 0x5a]
cmp ax, 0x36
jae 0x445a11
movzx ecx, ax
mov eax, dword [ebp - 0x78]
imul ecx, ecx, 0x68
mov dword [ecx + 0x642c8c], eax
mov cx, word [ebp + 0x58]
cmp cx, 0x36
jae 0x445a11
movzx edx, cx
imul edx, edx, 0x68
mov dword [edx + 0x642c8c], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048989b
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048989b
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.004016a0
lea ecx, [ebp + 0xc]
call fcn.004016a0
xor eax, eax
jmp 0x445a72
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048989b
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0048989b
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.004016a0
lea ecx, [ebp + 0xc]
call fcn.004016a0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ac396
mov esp, ebp
pop ebp
ret