Function at 0x100566a0
Capabilities:
Get disk information
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x1015bdd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x834], ebx
cmp dword [0x1017587c], edi
jne 0x100566f6
push 0x10137700
mov dword [0x1017587c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x100566f6
push 0x101376ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10175878], eax
mov dword [ebp - 0x838], edi
cmp esi, 0xffffffff
je 0x100568fd
cmp dword [0x10175878], edi
je 0x100568fd
cmp ebx, edi
je 0x100568fd
cmp dword [ebp + 0x10], edi
je 0x100568fd
lea eax, [ebp - 0x830]
push eax
push esi
mov dword [ebp - 0x830], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x10056746
cmp dword [ebp - 0x830], edi
je 0x100568fd
push edi
push 1
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x83c], esi
cmp esi, edi
je 0x100568f1
push 1
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x840], ebx
cmp ebx, edi
je 0x100568f1
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x10175878]
test eax, eax
je 0x100568ea
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.1007d080
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x206
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100568ea
xor edi, edi
mov dword [ebp - 0xa], edi
lea ebx, [ebp - 0x214]
jmp 0x100567f6
mov esi, dword [ebp - 0x83c]
mov edx, dword [ebx]
push 0x104
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100568de
lea eax, [ebp - 0x624]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10056822
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x100568c0
push esi
lea edx, [ebp - 0x624]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.1007f260
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
je 0x100568c0
lea ecx, [ebp + esi*2 - 0x41c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x10127dc8
lea eax, [ebp - 0x82c]
push 0x103
push eax
call fcn.1007e032
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x834]
lea ecx, [esi + esi]
push ecx
push 0
push edx
call fcn.1007d080
mov ecx, dword [ebp - 0x834]
dec esi
push esi
lea eax, [ebp - 0x82c]
push eax
push ecx
call fcn.1007ce61
add esp, 0x2c
mov dword [ebp - 0x838], 1
lea ebx, [ebx]
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x100568c0
test edi, edi
jne 0x100568d8
cmp word [ebx], di
jne 0x100567f0
mov esi, dword [ebp - 0x83c]
mov edi, dword [ebp - 0x838]
mov ebx, dword [ebp - 0x840]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, 0xffffffff
je 0x100568fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007ceab
mov esp, ebp
pop ebp
ret