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

Disassembly:
push 0xffffffffffffffff
push 0x42b54c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a13d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_Inf_file_failed__d____n
call fcn.00404950
add esp, 8
xor eax, eax
jmp 0x40a4eb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40a16f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSize_failed__d____n
call fcn.00404950
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a4eb
lea ebx, [ebp + 1]
push ebx
call fcn.0040eecd
mov esi, eax
add esp, 4
test esi, esi
je 0x40a161
push ebx
push 0
push esi
call fcn.00418350
add esp, 0xc
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a1d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed__d___
call fcn.00404950
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040eec8
add esp, 4
xor eax, eax
jmp 0x40a4eb
push edi
mov byte [esi + ebp], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [esp + 0x48]
call fcn.00404280
push esi
mov dword [esp + 0xc4], ebx
call fcn.0040eec8
add esp, 4
push 0x42dc27
lea ecx, [esp + 0x64]
call fcn.00404280
push 0x42dc27
lea ecx, [esp + 0x80]
mov byte [esp + 0xc4], 1
call fcn.00404280
push 0x42dc27
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc4], 2
call fcn.00404280
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
mov ebp, 0x10
cmp edx, ebp
mov byte [esp + 0xc0], 3
mov eax, edi
jae 0x40a254
lea eax, [esp + 0x48]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a257
sub eax, esi
cmp edx, ebp
mov ecx, edi
jae 0x40a26c
lea ecx, [esp + 0x48]
add eax, 1
push eax
push ecx
call fcn.00417f6c
add esp, 8
push 5
push ebx
push str.pid_
lea ecx, [esp + 0x50]
call fcn.00402730
cmp eax, 0xffffffff
je 0x40a4bf
push 5
push ebx
push str.pid_
lea ecx, [esp + 0x50]
call fcn.00402730
mov esi, eax
push 4
lea ecx, [esi - 4]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004042f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xcc], 4
call fcn.00403770
cmp dword [esp + 0x30], ebp
mov byte [esp + 0xc0], 3
jb 0x40a2ed
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eec8
add esp, 4
push 4
lea ecx, [esi + 5]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004042f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xcc], 5
call fcn.00403770
cmp dword [esp + 0x30], ebp
mov byte [esp + 0xc0], 3
jb 0x40a331
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eec8
add esp, 4
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x40a348
lea eax, [esp + 0x80]
push eax
push str.12d1
call fcn.00417550
add esp, 8
test eax, eax
je 0x40a3a3
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
jae 0x40a368
lea eax, [esp + 0x64]
push 1
push eax
call fcn.00402ea0
add esp, 8
test eax, eax
jne 0x40a443
mov edi, dword [0x481fa8]
cmp edi, dword [0x481fac]
jbe 0x40a38e
call fcn.0041898e
lea ecx, [esp + 0x60]
mov eax, 0x481fa4
push ecx
lea edx, [esp + 0x38]
mov ecx, eax
jmp 0x40a43b
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00404500
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], 6
call fcn.00403770
cmp dword [esp + 0x30], ebp
mov byte [esp + 0xc0], 3
jb 0x40a3f0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eec8
add esp, 4
cmp dword [esp + 0xb0], ebp
mov eax, dword [esp + 0x9c]
jae 0x40a407
lea eax, [esp + 0x9c]
push ebx
push eax
call fcn.00402ea0
add esp, 8
test eax, eax
jne 0x40a443
mov edi, dword [0x481fb8]
cmp edi, dword [0x481fbc]
jbe 0x40a428
call fcn.0041898e
lea ecx, [esp + 0x98]
mov eax, 0x481fb4
push ecx
lea edx, [esp + 0x40]
mov ecx, eax
push edi
push eax
push edx
call fcn.00409fc0
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x40a451
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40a454
sub eax, edx
add eax, 0xfffffff7
push eax
add esi, 9
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x50]
call fcn.004042f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xcc], 7
call fcn.00403770
cmp dword [esp + 0x30], ebp
mov byte [esp + 0xc0], 3
jb 0x40a4a5
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040eec8
add esp, 4
push 5
push ebx
push str.pid_
lea ecx, [esp + 0x50]
call fcn.00402730
cmp eax, 0xffffffff
jne 0x40a293
lea ecx, [esp + 0x98]
call fcn.004031e0
lea ecx, [esp + 0x7c]
call fcn.004031e0
lea ecx, [esp + 0x60]
call fcn.004031e0
lea ecx, [esp + 0x44]
call fcn.004031e0
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00417b3b
add esp, 0xb0
ret