Function at 0x40aec0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x456598
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.0042d67b
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40af03
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x38]
push ecx
xor esi, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
push str._timeout
push 0x470130
call fcn.00403330
test eax, eax
je 0x40af6c
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], edi
je 0x40af6c
push eax
call fcn.0043de48
add esp, 4
mov esi, eax
push str.stampbin.dat
lea eax, [esp + 0x20]
push eax
push 0x470130
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edi
call fcn.00405060
cmp esi, edi
jne 0x40b010
cmp dword [esp + 0x18], edi
je 0x40b01c
mov ecx, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b006
push edi
lea edx, [esp + 0x28]
push edx
push 8
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x2710
push ebx
push ebp
call fcn.00448870
mov ecx, dword [esp + 0x30]
cmp ecx, edx
mov ecx, dword [esp + 0x2c]
ja 0x40affe
jb 0x40aff5
cmp ecx, eax
ja 0x40affe
mov dword [esp + 0x18], edi
jmp 0x40b084
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x40b084
mov dword [esp + 0x18], 0x48190800
jmp 0x40b084
imul esi, esi, 0x3e8
mov dword [esp + 0x18], esi
jmp 0x40b024
mov dword [esp + 0x18], 0x48190800
mov eax, dword [esp + 0x18]
mov edx, 0x2710
mul edx
push edi
add eax, ebp
push 0x2710
adc edx, ebx
push edx
push eax
call fcn.00448870
push edi
push 0x82
push 2
push edi
push edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
push 0x40000000
push eax
mov dword [esp + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b084
push edi
lea ecx, [esp + 0x28]
push ecx
push 8
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret