Function at 0x4075d0
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 0x4075e4
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 0x407631
push esi
push 0x449144
call fcn.00407b20
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 0x40766d
mov esi, dword [esp + 0x1b0]
push closesocket
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407683
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x407615
mov esi, dword [esp + 0x1b0]
push 0xc0000000
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4076d7
push 0
push 0x10000080
push 2
push 0
push 3
push 0xc0000000
push esi
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4076d7
push esi
call fcn.00423070
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 0x4076d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [str.Cant_Create_file]
push esi
push eax
jmp 0x40761b
mov ecx, dword [esp + 0x1b4]
mov ebp, dword [esp + 0x1a8]
test ecx, ecx
je 0x407708
mov edx, dword [esp + 0x1a4]
push edx
push 1
call fcn.00403af0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1b4]
push eax
call fcn.00403b70
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 0x4077c5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp ecx, edx
jne 0x4077c5
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 0x4077c1
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 0x4077b4
push ebp
call fcn.00403b70
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 0x4077f3
push esi
lea eax, [esp + 0x6c]
push 0x446f04
push eax
call fcn.00411f9c
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.00430663
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jl 0x407837
jg 0x407807
cmp dword [esp + 0x24], eax
jbe 0x40783b
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 0x407849
cmp dword [esp + 0x24], eax
jne 0x4079ec
cmp edx, ecx
jne 0x4079ec
push 0xf000
call fcn.0042d3e3
mov esi, eax
push 0xf000
mov dword [esp + 0x38], esi
call fcn.0042d3e3
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 0x40787e
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1ac]
test eax, eax
je 0x407892
cmp dword [eax], 0
jne 0x4079a6
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 0x4079a6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407930
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 0x407930
mov edi, dword [esp + 0x2c]
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407924
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 0x40787a
push eax
call fcn.00403b70
jmp 0x40787a
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 0x40798c
push eax
call fcn.00403b70
mov eax, dword [esp + 0x1b8]
test eax, eax
je 0x40787e
mov dword [eax], 1
jmp 0x40787e
push esi
call fcn.0042d40c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042d40c
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.0042d3e3
mov esi, dword [esp + 0x1b8]
add esp, 4
test esi, esi
mov edi, eax
je 0x407a22
mov eax, dword [esp + 0x1a4]
mov ecx, esi
push eax
push 1
call fcn.00403af0
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.00403b70
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x1ac]
test esi, esi
je 0x407a3a
cmp dword [esi], 0
jne 0x407ab3
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 0x407aac
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 0x407aa4
mov edx, dword [ebp]
mov ecx, dword [esp + 0x1b4]
add edx, eax
test ecx, ecx
mov dword [ebp], edx
mov eax, edx
je 0x407a2a
push eax
call fcn.00403b70
jmp 0x407a2a
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x1ac]
push edi
call fcn.0042d40c
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 0x407afa
mov dword [eax], 1
test esi, esi
je 0x407b07
cmp dword [esi], 0
jne 0x407623
mov eax, dword [esp + 0x20]
pop edi
neg eax
pop esi
pop ebp
sbb eax, eax
pop ebx
add esp, 0x184
ret