Function at 0x4034e0
Capabilities:
Get file size
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
sub esp, 0x30
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x417898
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebp - 2]
mov cx, word [ecx + ebp - 2]
cmp cx, word [edx]
jne 0x403515
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30
ret
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x417894
xor edx, edx
lea esi, [ecx + ebp - 3]
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x403541
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30
ret
mov esi, dword [0x41d1dc]
xor edi, edi
push 0x80000
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
mov dword [0x41d1d8], edi
call fcn.00409960
add esp, 4
cmp esi, edi
mov dword [esp + 0x10], eax
jne 0x403571
call fcn.004031d0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x403790
mov ebx, dword [esp + 0x48]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x4c]
push 0
test eax, eax
push 0x80
jne 0x4035cf
push 2
push 0
push 0
push 0x40000000
push ebx
call esi
mov esi, eax
mov dword [esp + 0x44], esi
jmp 0x4035e3
push 1
push 0
push 0
push 0x40000000
push ebx
call esi
mov dword [esp + 0x44], eax
mov esi, eax
cmp esi, 0xffffffff
je 0x40377f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor esi, esi
push ebp
mov ebx, eax
mov eax, dword [0x41d1dc]
push esi
push 0xc
push 0x3f4
push eax
call edi
mov ecx, ebx
mov edx, dword [0x41d1dc]
shr ecx, 0x13
shl ecx, 0x10
push ecx
push esi
push 0x401
push 0x3f2
push edx
call edi
mov eax, dword [0x41d1dc]
push esi
push esi
push 0x402
push 0x3f2
push eax
call edi
test ebx, ebx
jbe 0x40371d
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00406910
mov eax, dword [0x41d1d8]
test eax, eax
jne 0x403777
mov eax, ebx
sub eax, esi
cmp eax, 0x80000
jbe 0x403671
mov eax, 0x80000
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call ebp
test eax, eax
je 0x403777
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403777
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x403777
mov edx, dword [0x41d1e0]
add esi, eax
shr eax, 4
add edx, eax
mov eax, dword [0x41d1dc]
mov dword [0x41d1e0], edx
mov edx, esi
shr edx, 0x13
push 0
push edx
push 0x402
push 0x3f2
push eax
call edi
mov eax, dword [0x41d1e0]
mov ecx, dword [0x41d1dc]
cdq
and edx, 0x7ffff
push 0
add eax, edx
sar eax, 0x13
push eax
push 0x402
push 0x3fb
push ecx
call edi
cmp esi, ebx
jb 0x40364f
lea edx, [esp + 0x28]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403777
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x403777
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov dword [esp + 0x1c], 1
jmp 0x403790
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
je 0x403790
push esi
call edi
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a368
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
pop ebx
jne 0x4037ab
call fcn.004031b0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4037c0
mov ecx, dword [esp + 0x44]
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x30
ret