Function at 0x403930
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [0x55b0d8]
sub esp, 0x160
test eax, eax
push ebx
push ebp
push esi
push edi
jg 0x403a1e
mov dword [0x55b0d8], 0
call fcn.004034e0
mov edi, dword [sym.imp.kernel32.dll_FindFirstFileA]
lea eax, [esp + 0x30]
push eax
push 0x55b220
call edi
mov ebx, dword [sym.imp.kernel32.dll_FindClose]
mov esi, eax
push esi
call ebx
cmp esi, 0xffffffff
je 0x4039a5
mov ebp, dword [esp + 0x50]
lea ecx, [esp + 0x30]
push ecx
push 0x55afc0
call edi
mov esi, eax
push esi
call ebx
cmp esi, 0xffffffff
je 0x4039a5
cmp ebp, dword [esp + 0x50]
jne 0x4039a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x160
ret
cmp dword [esp + 0x174], 1
jne 0x403a0e
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55b220
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x45f178
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x30
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x160
ret
mov ecx, dword [0x55b20c]
mov edx, dword [0x465e74]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x45f0dc]
push ecx
push edx
push eax
call ebx
test eax, eax
mov ebp, dword [esp + 0x174]
jne 0x403ae6
cmp ebp, 1
jne 0x403c28
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55b220
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x45f154
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x35
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x403c28
mov ecx, dword [0x55b20c]
mov edx, dword [0x465e74]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x45f0dc]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x403a50
mov edx, dword [esp + 0x10]
mov eax, dword [0x465e74]
mov ebx, dword [sym.imp.kernel32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x45f0e0]
push edx
push eax
push ecx
call ebx
test eax, eax
jne 0x403ba3
cmp ebp, 1
jne 0x403c28
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x55afc0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, 0x55b0e0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x45f130
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, 0x55b0e0
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x35
push 0x55b0e0
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x403c28
mov ecx, dword [esp + 0x10]
mov edx, dword [0x465e74]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x45f0e0]
push ecx
push edx
push eax
call ebx
test eax, eax
je 0x403b0f
mov edx, dword [0x55b0d8]
mov ecx, dword [esp + 0x10]
sub edx, ecx
mov dword [0x55b0d8], edx
call fcn.00403540
mov eax, dword [0x55b0d8]
test eax, eax
jg 0x403c3d
lea edx, [esp + 0x18]
push edx
mov edx, dword [0x45f0dc]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetFileTime]
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x45f0e0]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.kernel32.dll_SetFileTime]
call fcn.004034e0
push 0x55b220
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403c1b
push eax
push 0x55afc0
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x160
ret
call fcn.004034e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x160
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x160
ret