Function at 0x42db40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fae0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x473b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xb
xor eax, eax
xor esi, esi
push str.devlist.dat
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00403570
mov dword [ebp - 4], esi
cmp dword [edi + 0x4e4], esi
je 0x42dc60
lea ecx, [ebp - 0x80]
lea ebx, [edi + 0x4d4]
push ecx
call fcn.004034d0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x70], esi
je 0x42dc46
push 0xb
xor edx, edx
mov ebx, 7
push str.devlist.dat
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
call fcn.00403570
lea edi, [ebp - 0x48]
lea edx, [ebp - 0x80]
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00404240
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403f40
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x42dc1d
mov eax, dword [ebp - 0x64]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], esi
jb 0x42dc3e
mov edx, dword [ebp - 0x48]
push edx
call fcn.00444884
add esp, 4
mov edi, dword [ebp - 0x8c]
jmp 0x42dc4b
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x6c], esi
jb 0x42dc60
mov eax, dword [ebp - 0x80]
push eax
call fcn.00444884
add esp, 4
push 4
push 0x1000
push 0x11000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x90], esi
test esi, esi
je 0x42e070
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42dc90
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x9c], eax
cmp eax, 0xffffffff
je 0x42e062
lea ecx, [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x11000
push 0
push esi
mov ebx, eax
call fcn.00449a10
add esp, 0xc
cmp ebx, 0x11000
jae 0x42e055
test bl, 7
jne 0x42e055
mov eax, dword [ebp - 0x9c]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x94]
push edx
push 0x11000
push esi
push eax
mov dword [ebp - 0x94], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e055
push 0x20
call fcn.00444804
add esp, 4
cmp eax, ebx
je 0x42dd2d
call fcn.0042eff0
mov ebx, eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0042f1f0
test ebx, ebx
je 0x42dd4a
push ebx
call fcn.00444884
add esp, 4
mov ecx, dword [ebp - 0x94]
add ecx, esi
xor edx, edx
mov eax, esi
cmp esi, ecx
jae 0x42e055
mov edi, edi
cmp dword [eax], 0xfeed2011
jne 0x42dd69
inc edx
inc eax
cmp eax, ecx
jb 0x42dd60
cmp edx, 0x1a
jne 0x42e055
mov byte [ebp - 0x81], 1
mov dword [ebp - 0x98], 0
add edi, 0x2a
jmp 0x42dd96
mov esi, dword [ebp - 0x8c]
cmp byte [ebp - 0x81], 0
je 0x42e04f
lea eax, [esi + 1]
push eax
call fcn.0042dab0
mov dword [ebp - 0x8c], eax
test esi, esi
je 0x42e02d
mov cx, word [esi + 4]
mov word [edi - 2], cx
mov dl, byte [esi + 6]
mov byte [edi], dl
mov cl, byte [esi + 7]
mov byte [edi + 1], cl
mov edx, dword [esi + 8]
mov dword [edi + 2], edx
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xe], ecx
mov edx, dword [esi + 0x10]
add esi, 0x14
mov dword [edi + 0x12], edx
mov ebx, dword [esi]
sub eax, esi
cmp ebx, eax
ja 0x42e048
add esi, 4
test ebx, ebx
je 0x42de46
mov eax, dword [edi + 6]
test eax, eax
je 0x42de13
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 6], 0
lea eax, [ebx + ebx + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 6], eax
test eax, eax
je 0x42de3f
lea ecx, [ebx + ebx]
push ecx
push esi
push ecx
push eax
call fcn.00444f59
add esp, 0x10
jmp 0x42de46
mov byte [ebp - 0x81], 0
mov ecx, dword [ebp - 0x8c]
lea eax, [esi + ebx*2 + 2]
mov ebx, dword [eax]
sub ecx, eax
cmp ebx, ecx
ja 0x42e048
add eax, 4
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x42dec5
mov eax, dword [edi + 0xa]
test eax, eax
je 0x42de87
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0xa], 0
lea esi, [ebx + ebx]
lea edx, [esi + 2]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0xa], eax
test eax, eax
je 0x42deb8
mov ecx, dword [ebp - 0x88]
push esi
push ecx
push esi
push eax
call fcn.00444f59
add esp, 0x10
jmp 0x42debf
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
lea eax, [eax + ebx*2 + 2]
mov ebx, dword [eax]
sub edx, eax
cmp ebx, edx
ja 0x42e048
add eax, 4
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x42df44
mov eax, dword [edi + 0x1e]
test eax, eax
je 0x42df06
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x1e], 0
lea esi, [ebx + ebx]
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x1e], eax
test eax, eax
je 0x42df37
mov ecx, dword [ebp - 0x88]
push esi
push ecx
push esi
push eax
call fcn.00444f59
add esp, 0x10
jmp 0x42df3e
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
lea eax, [eax + ebx*2 + 2]
mov ebx, dword [eax]
sub edx, eax
cmp ebx, edx
ja 0x42e048
add eax, 4
mov dword [ebp - 0x88], eax
test ebx, ebx
je 0x42dfc3
mov eax, dword [edi + 0x22]
test eax, eax
je 0x42df85
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x22], 0
lea esi, [ebx + ebx]
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x22], eax
test eax, eax
je 0x42dfb6
mov ecx, dword [ebp - 0x88]
push esi
push ecx
push esi
push eax
call fcn.00444f59
add esp, 0x10
jmp 0x42dfbd
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov esi, dword [eax + ebx*2 + 2]
lea ebx, [eax + ebx*2 + 2]
sub edx, ebx
cmp esi, edx
ja 0x42e048
add ebx, 4
test esi, esi
je 0x42e02d
mov eax, dword [edi + 0x26]
test eax, eax
je 0x42dffc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x26], 0
add esi, esi
lea eax, [esi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x26], eax
test eax, eax
je 0x42e026
push esi
push ebx
push esi
push eax
call fcn.00444f59
add esp, 0x10
jmp 0x42e02d
mov byte [ebp - 0x81], 0
mov eax, dword [ebp - 0x98]
inc eax
add edi, 0x2c
mov dword [ebp - 0x98], eax
cmp eax, 0x1a
jl 0x42dd90
jmp 0x42e04f
mov byte [ebp - 0x81], 0
mov esi, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x18], 8
jb 0x42e082
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00444884
add esp, 4
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444627
mov esp, ebp
pop ebp
ret