Function at 0x4073a0
Capabilities:
Get file size
Read file on windows
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [esp + 0x24]
sub esp, 0x184
test eax, eax
je 0x4073b4
mov dword [eax], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x194]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0x10000080
push 3
push 0
push 3
push closesocket
push esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x407401
push esi
push 0x448df4
call fcn.004078f0
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x184
ret
mov eax, dword [esp + 0x1a0]
push 0
push 0x10000080
push 3
test eax, eax
push 0
push 3
je 0x40743d
mov esi, dword [esp + 0x1b0]
push closesocket
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407453
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x4073e5
mov esi, dword [esp + 0x1b0]
push 0xc0000000
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4074a7
push 0
push 0x10000080
push 2
push 0
push 3
push 0xc0000000
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4074a7
push esi
call fcn.00422dc0
add esp, 4
push 0
push 0x10000080
push 2
push 0
push 3
push 0xc0000000
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4074a7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [str.Cant_Create_file]
push esi
push eax
jmp 0x4073eb
mov ecx, dword [esp + 0x1b4]
mov ebp, dword [esp + 0x1a8]
test ecx, ecx
je 0x4074d8
mov edx, dword [esp + 0x1a4]
push edx
push 1
call fcn.00403840
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1b4]
push eax
call fcn.004038c0
lea ecx, [esp + 0x14]
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
call edi
lea edx, [esp + 0x28]
mov dword [esp + 0x10], eax
push edx
push ebx
call edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x407595
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp ecx, edx
jne 0x407595
lea edx, [esp + 0x60]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x58]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.004026e0
add esp, 0xc
test eax, eax
jne 0x407591
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp]
add ecx, edx
mov dword [ebp], ecx
mov ebp, ecx
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x407584
push ebp
call fcn.004038c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184
ret
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1b0]
test edi, edi
je 0x4075c3
push esi
lea eax, [esp + 0x6c]
push 0x446f04
push eax
call fcn.00411d7c
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.004303c6
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jl 0x407607
jg 0x4075d7
cmp dword [esp + 0x24], eax
jbe 0x40760b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push ebx
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x407619
cmp dword [esp + 0x24], eax
jne 0x4077bc
cmp edx, ecx
jne 0x4077bc
push 0xf000
call fcn.0042d143
mov esi, eax
push 0xf000
mov dword [esp + 0x38], esi
call fcn.0042d143
add esp, 8
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jmp 0x40764e
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1ac]
test eax, eax
je 0x407662
cmp dword [eax], 0
jne 0x407776
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0xf000
push esi
push edx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x407776
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407700
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push 0
push eax
push 0xf000
push ecx
push ebx
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jne 0x407700
mov edi, dword [esp + 0x2c]
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4076f4
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1b4]
add edi, eax
adc esi, edx
mov edx, dword [ebp]
add edx, eax
mov dword [esp + 0x10], edi
test ecx, ecx
mov dword [esp + 0x14], esi
mov dword [ebp], edx
mov eax, edx
je 0x40764a
push eax
call fcn.004038c0
jmp 0x40764a
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0xf000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [ebp]
add ecx, 0xf000
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1b4]
adc eax, 0
add edi, edx
mov dword [esp + 0x14], eax
mov dword [ebp], edi
test ecx, ecx
mov eax, edi
je 0x40775c
push eax
call fcn.004038c0
mov eax, dword [esp + 0x1b8]
test eax, eax
je 0x40764e
mov dword [eax], 1
jmp 0x40764e
push esi
call fcn.0042d16c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042d16c
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edx
call esi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184
ret
push 0xf000
call fcn.0042d143
mov esi, dword [esp + 0x1b8]
add esp, 4
test esi, esi
mov edi, eax
je 0x4077f2
mov eax, dword [esp + 0x1a4]
mov ecx, esi
push eax
push 1
call fcn.00403840
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.004038c0
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x1ac]
test esi, esi
je 0x40780a
cmp dword [esi], 0
jne 0x407883
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push 0
push edx
push 0xf000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40787c
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
adc edx, 0
cmp esi, eax
mov dword [esp + 0x14], edx
jne 0x407874
mov edx, dword [ebp]
mov ecx, dword [esp + 0x1b4]
add edx, eax
test ecx, ecx
mov dword [ebp], edx
mov eax, edx
je 0x4077fa
push eax
call fcn.004038c0
jmp 0x4077fa
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x1ac]
push edi
call fcn.0042d16c
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call edi
mov eax, dword [esp + 0x1b8]
test eax, eax
je 0x4078ca
mov dword [eax], 1
test esi, esi
je 0x4078d7
cmp dword [esi], 0
jne 0x4073f3
mov eax, dword [esp + 0x20]
pop edi
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
add esp, 0x184
ret