Function at 0x442610
Capabilities:
Access peb ldr_data
Get disk information
Get disk size
Get file size
Get number of processors
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e9cce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x34]
call fcn.00449480
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x30], ecx
push 0x101064
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
call fcn.004492b0
mov ebp, dword [esp + 0x24]
xor ecx, ecx
add ebp, 0x100028
lea esi, [ebp + 8]
lea ebx, [esi + 0x41a]
mov word [ebx + 0x20a], cx
lea edi, [ebx + 0x20a]
mov word [edi + 0x824], cx
lea eax, [edi + 0x824]
mov word [eax + 0x64], cx
mov dword [esp + 0x44], eax
add eax, 0x64
mov word [eax + 0x64], cx
mov dword [esp + 0x64], eax
add eax, 0x64
mov word [eax + 0x64], cx
mov dword [esp + 0x54], eax
add eax, 0x64
mov word [eax + 0x64], cx
mov dword [esp + 0x58], eax
add eax, 0x64
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
lea edx, [eax + 8]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x20], 0x4efd50
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xb4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
push 0x5c
push ecx
mov dword [eax + 0x24], ecx
push edx
mov byte [esp + 0xb4], 2
mov dword [eax], 5
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x2f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jbe 0x442755
mov dword [esp + 0x10], eax
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x18], 0
je 0x44276e
mov dx, word [ecx]
mov word [esp + 0x18], dx
mov word [ecx], 0
mov edx, dword [esp + 0xb4]
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44279a
mov cx, word [esp + 0x18]
mov word [eax], cx
lea edx, [esp + 0x70]
push edx
mov eax, 0x5c
mov word [ebp + 6], ax
mov word [ebp + 2], ax
mov word [ebp], ax
mov eax, dword [esp + 0xb8]
push esi
mov word [ebp + 4], 0x2e
push 0x20d
mov dword [esp + 0x7c], 0
push eax
mov word [esi], 0
call fcn.00449fe0
add esp, 0x10
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x5c
push 0
mov word [ebx], 0
push esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], 0xffffffff
mov word [edi], 0
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
push ebx
lea ecx, [esp + 0x7c]
push ecx
push 0
push 0
push 0
push 0
mov ebp, eax
push esi
mov word [ebp + 2], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push esi
mov dword [esp + 0x24], eax
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
mov word [ebp], 0
jne 0x4428b1
nop
cmp ebp, dword [esp + 0x6c]
jbe 0x442cfd
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
push ebx
lea edx, [esp + 0x7c]
push edx
push 0
push 0
push 0
push 0
mov ebp, eax
push esi
mov word [ebp + 2], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push esi
mov dword [esp + 0x24], eax
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
mov word [ebp], 0
je 0x442850
push ebx
push 0x4f7a94
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4428d0
mov ebx, 1
jmp 0x442924
push ebx
push str.FAT32
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4428ea
mov dword [esp + 0x10], 2
jmp 0x442920
push ebx
push str.exFAT
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x442904
mov dword [esp + 0x10], 3
jmp 0x442920
push ebx
push 0x4f7a70
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x442920
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x10]
cmp word [edi], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
je 0x442956
mov ecx, ebp
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 4
je 0x442956
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
mov dword [esp + 0x14], ecx
jmp 0x442968
sub ebp, esi
and ebp, 0xfffffffe
cmp ebp, 4
jne 0x442968
mov dword [esp + 0x14], 0
cmp ebx, 2
je 0x442988
cmp ebx, 1
je 0x442988
cmp ebx, 3
je 0x442988
mov edx, dword [esp + 0xcc]
cmp word [edx], 0
je 0x442ab5
mov eax, dword [esp + 0x20]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
lea ecx, [esp + 0x38]
call fcn.00417e55
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
je 0x4429b9
mov ecx, dword [esp + 0x20]
mov word [ecx], ax
mov ebp, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
push eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
lea ecx, [esp + 0x2c]
push ecx
push 0x20
mov dword [esp + 0xa8], edx
lea edx, [esp + 0x8c]
push edx
push eax
push eax
push 0x74004
push ebp
mov dword [esp + 0xa0], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
xor eax, eax
push eax
lea edx, [esp + 0x2c]
push edx
push 0x200
mov dword [esp + 0x6c], ecx
push esi
mov ecx, 0x80
mov edi, esi
push ebp
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test ebp, ebp
je 0x442a61
cmp ebp, 0xffffffff
je 0x442a61
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 3
mov dword [esp + 0x1c], 0
jne 0x442a7c
mov esi, dword [esi + 0x58]
imul esi, dword [esp + 0x2c]
mov dword [esp + 0x30], esi
jmp 0x442ab5
cmp ebx, 2
je 0x442a86
cmp ebx, 1
jne 0x442ab5
cmp ebx, 2
movzx edx, word [esi + 0xe]
mov al, byte [esi + 0x10]
movzx ecx, word [esi + 0x11]
jne 0x442a9b
mov esi, dword [esi + 0x24]
jmp 0x442a9f
movzx esi, word [esi + 0x16]
movzx eax, al
imul eax, esi
add eax, edx
imul eax, dword [esp + 0x2c]
shl ecx, 5
add eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xb4]
push 0
push 0x80
push 3
push 0
push 7
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00417e55
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
jne 0x442ae8
mov dword [esp + 0x14], ebx
jmp 0x442cfd
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
call fcn.004a48b0
mov ebp, dword [esp + 0x38]
imul ebp, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
push ebx
push ebp
push edx
mov dword [esp + 0x30], ebp
call fcn.004a48e0
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
add esp, 0x18
xor eax, eax
push eax
mov ecx, 0x4000a
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
push 0x100020
push esi
push 8
lea ecx, [esp + 0x8c]
push ecx
push 0x90073
push edx
mov dword [esi], 0x10000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x442b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [esp + 0x14], eax
jne 0x442cfd
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push 0xffffffffffffffda
push eax
call fcn.004a48b0
add esp, 0xc
jmp 0x442cfd
mov ecx, dword [esi]
inc ecx
imul ecx, ecx, 0x64
push ecx
lea ecx, [esp + 0x38]
call fcn.004494e0
mov edx, dword [esi]
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
or eax, 0xffffffff
test edx, edx
mov dword [esp + 0x10], edi
jbe 0x442be1
mov eax, dword [esi + 0x1c]
test eax, eax
mov ecx, dword [esi + 0x18]
jl 0x442be1
jg 0x442bca
test ecx, ecx
jb 0x442be1
push eax
push ecx
push ebx
push ebp
call fcn.004b4970
mov ebx, dword [esp + 0x30]
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call fcn.004a48b0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x442bfc
neg eax
cdq
push edx
push eax
mov eax, dword [esp + 0x60]
push eax
call fcn.004a48b0
mov ecx, dword [esp + 0xd0]
add esp, 0xc
cmp word [ecx], 0
lea eax, [esi + 8]
je 0x442cea
cmp dword [esi], 0
mov dword [esp + 0x14], 0
jbe 0x442cf7
add esi, 0x10
jmp 0x442c40
mov ebp, dword [esp + 0x18]
lea ebx, [ebx]
mov edx, dword [eax]
mov edi, dword [esi]
xor eax, eax
push eax
mov eax, dword [esi + 8]
sub edi, edx
mov edx, dword [esi + 0xc]
push ebp
push edx
push eax
call fcn.004b4970
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ebp, dword [esp + 0x30]
mov eax, 0
push eax
push edi
push eax
mov ebx, edx
push ecx
adc ebx, eax
call fcn.004b4970
mov ecx, dword [esp + 0x3c]
mov edi, edx
cmp edi, ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
jb 0x442c93
ja 0x442c8b
cmp eax, edx
jbe 0x442c93
mov dword [esp + 0x4c], edx
mov edi, ecx
mov eax, edx
sub edx, eax
push 0x4f7a60
push ebx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
sbb ecx, edi
push ebp
push edx
mov dword [esp + 0x4c], ecx
call fcn.004a4880
mov ecx, dword [esp + 0x5c]
push str._I64u_r_n
push edi
push ecx
push eax
call fcn.004a4880
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x60]
mov edi, dword [edx]
add esp, 0x20
mov dword [esp + 0x10], eax
inc ecx
mov eax, esi
add esi, 0x10
cmp ecx, edi
mov dword [esp + 0x14], ecx
jb 0x442c36
mov edi, dword [esp + 0x10]
mov esi, edx
cmp dword [esi], 0
jbe 0x442cf7
sub edi, 4
mov word [edi], 0
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb0]
push ecx
push edx
mov ecx, esi
call fcn.00448be0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0xbc]
push eax
push ecx
mov ecx, esi
call fcn.00448be0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0xc0]
push edx
push eax
mov ecx, esi
call fcn.00448be0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0xc8]
push ecx
push edx
mov ecx, esi
call fcn.00448be0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc4]
push eax
push ecx
mov ecx, esi
call fcn.00448be0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x68]
push edx
push eax
push edi
call fcn.004a48b0
mov ecx, dword [esp + 0xd8]
add esp, 0xc
push edi
push ecx
mov ecx, esi
call fcn.00448be0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xd0]
push edx
push eax
mov ecx, esi
call fcn.00448be0
cmp dword [esp + 0x14], 1
jne 0x442dae
xor esi, esi
jmp 0x442dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442dbd
mov eax, 1
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x442dd3
cmp eax, 0xffffffff
je 0x442dd3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0
call fcn.00443880
lea ecx, [esp + 0x34]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00443880
mov ecx, dword [esp + 0xa0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret