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

Disassembly:
push 0xffffffffffffffff
push 0x42c010
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40af6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_Inf_file_failed__d___
call fcn.00404820
add esp, 8
xor eax, eax
jmp 0x40b189
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40af99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSize_failed__d___
call fcn.00404820
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b189
lea ebp, [eax + 1]
push ebp
call fcn.0040f57a
push ebp
mov edi, eax
push ebx
push edi
call fcn.00418130
add esp, 0x10
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40afd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed__d___
jmp 0x40af83
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x40]
call fcn.00404060
push edi
mov dword [esp + 0xa0], ebx
call fcn.0040f57f
add esp, 4
push 0x42ea1b
lea ecx, [esp + 0x78]
call fcn.00404060
mov eax, dword [esp + 0x40]
mov ebp, 0x10
cmp dword [esp + 0x54], ebp
mov byte [esp + 0x9c], 1
jae 0x40b01e
lea eax, [esp + 0x40]
push eax
call fcn.004180bb
add esp, 4
push 0xd
push ebx
push str.vid_339bpid_
lea ecx, [esp + 0x48]
call fcn.00402050
cmp eax, 0xffffffff
je 0x40b145
push 0xd
push ebx
push str.vid_339bpid_
lea ecx, [esp + 0x48]
call fcn.00402050
mov esi, eax
push 4
lea ecx, [esi + 0xd]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x48]
call fcn.00404100
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x9c], 2
jae 0x40b07e
lea eax, [esp + 0x5c]
push eax
call fcn.00402980
add esp, 4
test eax, eax
jne 0x40b0b6
mov edi, dword [0x490420]
cmp edi, dword [0x490424]
jbe 0x40b09e
call fcn.00418eb2
lea ecx, [esp + 0x58]
push ecx
mov eax, 0x49041c
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.0040aae0
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
jae 0x40b0c4
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40b0c7
sub eax, edx
add eax, 0xffffffef
push eax
add esi, 0x11
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.00404100
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa8], 3
call fcn.004033d0
cmp dword [esp + 0x38], ebp
jb 0x40b110
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x70], ebp
mov byte [esp + 0x9c], 1
jb 0x40b12b
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040f57f
add esp, 4
push 0xd
push ebx
push str.vid_339bpid_
lea ecx, [esp + 0x48]
call fcn.00402050
cmp eax, 0xffffffff
jne 0x40b041
cmp dword [esp + 0x8c], ebp
jb 0x40b15b
mov eax, dword [esp + 0x78]
push eax
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x40b184
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040f57f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0041811d
add esp, 0x8c
ret