Function at 0x49d5cc
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0x49d5d5
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
mov eax, dword [ebp - 8]
call fcn.004055b8
mov eax, dword [ebp + 8]
call fcn.004055b8
xor eax, eax
push ebp
push 0x49dec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
call fcn.0049beb8
test al, al
je 0x49de81
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
call fcn.004051a0
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov edx, 0x49dee0
call fcn.00405514
jne 0x49d6b8
mov eax, dword [ebp - 4]
call fcn.0049beb8
test al, al
je 0x49d6b8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049bc8c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x94]
call fcn.0040a3c4
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
mov edx, 0x49dee0
call fcn.00405414
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x35]
call dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0049beb8
test al, al
je 0x49d841
cmp byte [ebp + 0x10], 0
je 0x49d839
mov eax, dword [ebp - 4]
call fcn.0049bf38
mov dword [ebp - 0x54], eax
test byte [ebp - 0x54], 0x20
jne 0x49d839
mov byte [ebp - 0x22], 0
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
mov ecx, 3
mov edx, 0x80000000
call fcn.0049c084
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x49d73a
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004055c8
mov ecx, 3
mov edx, 0x80000000
call fcn.0049c084
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
je 0x49d78c
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.KERNEL32.DLL_GetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x4c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, byte [ebp - 0x21]
and al, byte [ebp - 0x22]
je 0x49d839
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x60]
jne 0x49d839
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x70]
jne 0x49d839
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x5c]
jne 0x49d839
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x6c]
jne 0x49d839
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049bc8c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
add dword [ecx], eax
adc dword [ecx + 4], edx
cmp byte [ebp + 0xc], 0
je 0x49d80a
mov eax, dword [ebp - 4]
call fcn.0049bf38
mov dword [ebp - 0x54], eax
test byte [ebp - 0x54], 0x20
je 0x49d80a
sub dword [ebp - 0x54], 0x20
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0049bfe4
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 8]
call dword [ebp - 0xc]
cmp byte [ebp - 0x35], 0
je 0x49de81
mov byte [0x61ce54], 1
jmp 0x49de81
mov eax, dword [ebp - 8]
call fcn.0049c164
mov eax, dword [ebp - 4]
call fcn.0049bf38
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x36], 0
cmp byte [ebp - 0x21], 0
jne 0x49d8a6
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
mov ecx, 3
mov edx, 0x80000000
call fcn.0049c084
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x49d8aa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetFileTime
test eax, eax
je 0x49d89b
mov byte [ebp - 0x36], 1
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x49d8aa
mov byte [ebp - 0x36], 1
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055c8
mov ecx, 3
mov edx, 0x80000000
call fcn.0049c084
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x49d99c
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x20
jne 0x49d945
cmp byte [0x613070], 0
je 0x49d945
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0049bc8c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x9c]
call fcn.0040a3c4
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x49deec
call fcn.00405414
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x35]
call dword [ebp - 0xc]
jmp 0x49de81
lea edx, [ebp - 0xa4]
mov eax, 0x188f8
call fcn.0049a250
push dword [ebp - 0xa4]
push 0x49def8
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x58]
call fcn.0040a2d8
push dword [ebp - 0xa8]
push 0x49df04
push dword [ebp - 4]
lea eax, [ebp - 0xa0]
mov edx, 5
call fcn.00405488
mov eax, dword [ebp - 0xa0]
call fcn.0049f388
jmp 0x49de81
push 0
push 2
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004055c8
mov ecx, 3
mov edx, 0x40000000
call fcn.0049c084
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x49da2a
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0xb0]
mov eax, 0x188f9
call fcn.0049a250
push dword [ebp - 0xb0]
push 0x49def8
call sub.KERNEL32.DLL_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xb4]
call fcn.0040a3c4
push dword [ebp - 0xb4]
push 0x49df04
push dword [ebp - 8]
lea eax, [ebp - 0xac]
mov edx, 5
call fcn.00405488
mov eax, dword [ebp - 0xac]
call fcn.0049f388
jmp 0x49de81
mov dword [ebp - 0x8c], 0xffffffff
push 0
lea eax, [ebp - 0x30]
push eax
push 0xfe00
push 0x61ce58
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x49daa1
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0xbc]
mov eax, 0x188fa
call fcn.0049a250
push dword [ebp - 0xbc]
push 0x49df10
push dword [ebp - 4]
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.00405488
mov eax, dword [ebp - 0xb8]
call fcn.0049f388
jmp 0x49de81
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0x61ce58
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x49db0d
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0xc4]
mov eax, 0x188fb
call fcn.0049a250
push dword [ebp - 0xc4]
push 0x49df10
push dword [ebp - 8]
lea eax, [ebp - 0xc0]
mov edx, 3
call fcn.00405488
mov eax, dword [ebp - 0xc0]
call fcn.0049f388
jmp 0x49de81
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x34]
je 0x49db53
lea edx, [ebp - 0xcc]
mov eax, 0x188fb
call fcn.0049a250
push dword [ebp - 0xcc]
push 0x49df10
push dword [ebp - 8]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.00405488
mov eax, dword [ebp - 0xc8]
call fcn.0049f388
jmp 0x49de81
cmp byte [0x613074], 0
je 0x49db84
mov eax, dword [ebp + 8]
mov edx, 0x49dee0
call fcn.00405514
je 0x49db84
mov edx, 0x61ce58
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x8c]
call fcn.004987e0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x34]
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov byte [ebp - 0x35], 0
lea eax, [ebp - 4]
call fcn.00405108
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 8]
call dword [ebp - 0xc]
cmp byte [ebp - 0x35], 0
je 0x49dbde
mov byte [0x61ce54], 1
jmp 0x49dbeb
cmp dword [ebp - 0x30], 0xfe00
je 0x49da34
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp byte [0x61ce54], 0
je 0x49dc21
mov eax, dword [ebp - 8]
call fcn.0049c164
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x49de81
cmp byte [0x613074], 0
je 0x49dd78
mov eax, dword [ebp + 8]
mov edx, 0x49dee0
call fcn.00405514
je 0x49dd78
not dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x40]
mov eax, 8
call fcn.0040a414
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.004051a0
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 0x3c]
call fcn.00409b94
mov eax, dword [ebp - 0xd0]
push eax
lea edx, [ebp - 0xd4]
mov eax, dword [ebp + 8]
call fcn.00409b94
mov eax, dword [ebp - 0xd4]
pop edx
call fcn.0040570c
test eax, eax
jle 0x49dcdf
lea edx, [ebp - 0xd8]
mov eax, dword [ebp - 0x3c]
call fcn.00409b94
mov eax, dword [ebp - 0xd8]
push eax
lea edx, [ebp - 0xdc]
mov eax, dword [ebp + 8]
call fcn.00409b94
mov eax, dword [ebp - 0xdc]
pop edx
call fcn.0040570c
push eax
mov eax, dword [ebp + 8]
call fcn.004053c8
mov ecx, eax
lea eax, [ebp - 0x3c]
pop edx
call fcn.00405668
lea eax, [ebp - 0xe0]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x3c]
call fcn.00405628
mov eax, dword [ebp - 0xe0]
mov edx, 0x49df1c
call fcn.00405514
jne 0x49dd1c
lea eax, [ebp - 0x3c]
mov ecx, 1
mov edx, 1
call fcn.00405668
push dword [ebp - 0x3c]
mov eax, dword [0x61ce44]
call fcn.0041fc84
mov edx, eax
lea eax, [ebp - 0xe8]
call fcn.004052f0
push dword [ebp - 0xe8]
push dword [ebp - 0x40]
push 0x49df28
lea edx, [ebp - 0xec]
mov eax, dword [ebp - 0x44]
call fcn.0048ca00
push dword [ebp - 0xec]
lea eax, [ebp - 0xe4]
mov edx, 5
call fcn.00405488
mov edx, dword [ebp - 0xe4]
mov eax, dword [0x61ce44]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
mov edx, 0x49dee0
call fcn.00405514
je 0x49ddb5
mov edx, dword [ebp - 8]
mov eax, dword [0x61ce3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x44]
mov eax, dword [0x61ce40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add dword [0x613080], eax
adc dword [0x613084], edx
jmp 0x49dde5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
jne 0x49ddd3
cmp eax, dword [ebp - 0x20]
jne 0x49ddd3
add dword [0x613088], 1
adc dword [0x61308c], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add dword [0x613090], eax
adc dword [0x613094], edx
cmp byte [ebp - 0x36], 0
je 0x49de31
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004055c8
mov ecx, 3
mov edx, 0xc0000000
call fcn.0049c084
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x49de31
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_SetFileTime
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov edx, 0x49dee0
call fcn.00405514
jne 0x49de50
test byte [ebp - 0x50], 0x20
je 0x49de50
sub dword [ebp - 0x50], 0x20
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.0049bfe4
cmp byte [ebp + 0xc], 0
je 0x49de81
mov eax, dword [ebp - 0x44]
call fcn.0049bf38
mov dword [ebp - 0x54], eax
test byte [ebp - 0x54], 0x20
je 0x49de81
sub dword [ebp - 0x54], 0x20
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
call fcn.0049bfe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dec8
lea eax, [ebp - 0xec]
mov edx, 0x18
call fcn.0040512c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040512c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040512c
lea eax, [ebp + 8]
call fcn.00405108
ret