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

Disassembly:
push 0xffffffffffffffff
push 0x41ee70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
je 0x409c09
cmp byte [edi], bl
je 0x409c09
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x80], 1
mov dword [esp + 0x2c], 8
mov dword [esp + 0x18], ebx
je 0x409a05
lea esi, [esp + 0x24]
lea ecx, [esp + 0x40]
call fcn.004017b0
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x44], ebx
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
je 0x409b1e
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push 2
push ebx
push eax
mov dword [esp + 0x28], ebx
call sub.WINSPOOL.DRV_GetPrinterDriverA
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x409b1e
push eax
call fcn.0041563f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409b1e
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 2
push ebx
push edx
call sub.WINSPOOL.DRV_GetPrinterDriverA
test eax, eax
je 0x409b15
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x409b15
cmp byte [eax], bl
je 0x409b15
push eax
lea ecx, [esp + 0x18]
call fcn.00402390
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00401cd0
push str..GPD
lea ecx, [esp + 0x18]
call fcn.00401d60
cmp eax, 0xffffffff
je 0x409b08
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
call fcn.00401940
push 0x4202c0
lea ecx, [esp + 0x44]
call fcn.00401d60
cmp eax, 0xffffffff
jne 0x409b08
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x88]
push ecx
push edx
lea eax, [esp + 0x48]
push str._s_s
push eax
call fcn.004021f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00401910
push esi
call fcn.0041563a
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409b30
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x40]
push ecx
push str.pDataFile____s__n
call fcn.00403770
add esp, 8
lea ecx, [esp + 0x40]
call fcn.00401d50
test eax, eax
jne 0x409bf4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ebx
lea ecx, [esp + 0x5c]
call fcn.00401c00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409bf4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x409bed
cmp eax, ebx
je 0x409bed
push 0x180
call fcn.0041563f
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x409bed
push ebx
lea edx, [esp + 0x18]
push edx
push 0x17f
push ebp
xor eax, eax
mov ecx, 0x60
mov edi, ebp
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
jne 0x409be2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push ebp
call fcn.00409760
mov dword [esp + 0x1c], eax
push ebp
call fcn.0041563a
add esp, 4
jmp 0x409bf4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401910
mov esi, dword [esp + 0x1c]
push esi
push str.CMainFrame::IsSidmProduct_______d_n
call fcn.00403770
mov ecx, dword [esp + 0x38]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8