Function at 0x431260
Capabilities:
Get common file path
Timestomp file

Disassembly:
sub esp, 0x2d0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x50]
push 0x104
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], ecx
push eax
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4312a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2d0
ret
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3e90
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x42
rep movsb byte es:[edi], byte [esi]
mov edi, 0x436278
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x43131e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0
ret
lea eax, [esp + 0x154]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x431342
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x34], ecx
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x38], eax
jmp 0x43135d
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x258]
push 0x4000
lea eax, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x4313fa
lea ecx, [esp + 0x50]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
lea edx, [esp + 0x14]
mov ebp, eax
push 4
push edx
push ebp
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x20], 0
call esi
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call esi
push 4
push 0x439d08
push ebp
call esi
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebp
call esi
lea edx, [esp + 0x14]
push 4
push edx
push ebp
call esi
lea eax, [esp + 0x14]
push 4
push eax
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [esp + 0x20]
jmp 0x4314a2
lea ecx, [esp + 0x50]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea edx, [esp + 0x14]
mov ebp, eax
push 4
push edx
push ebp
call edi
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x43147b
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call edi
cmp dword [esp + 0x20], 0x14
jne 0x43144e
push 4
push ebx
push ebp
call edi
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebp
call edi
push 8
push ebx
push ebp
call edi
mov eax, dword [esp + 0x20]
jmp 0x43149c
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 4
push ebp
call esi
push 0xc
push ebx
push ebp
call edi
cmp byte [ebx], 0x7b
jne 0x43161c
cmp byte [ebx + 0xb], 0x7d
jne 0x43161c
push 2
push 0
push ebp
jmp 0x431486
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push ebp
call esi
push 0
push 4
push ebp
mov dword [esp + 0x28], eax
call esi
mov eax, 0xa
mov dword [esp + 0x20], eax
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
cmp ebp, 0xffffffff
je 0x431296
sub eax, 0x14
push 0x10
neg eax
sbb eax, eax
push ebx
and al, 0xec
push ebp
add eax, 0x18
mov dword [esp + 0x1c], eax
call edi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
add edx, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jge 0x4315bc
mov eax, dword [ebx + 0xc]
cmp eax, 0x3e80
jg 0x431552
cmp byte [ebx], 0x7b
jne 0x431552
mov esi, dword [0x439d3c]
mov ecx, 3
mov edi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x431587
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add eax, edi
push 0x10
add esi, eax
push ebx
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0xc]
push ebp
lea eax, [edx + ecx + 0x10]
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
mov edi, dword [sym.imp.KERNEL32.dll__lread]
mov dword [esp + 0x2c], eax
jmp 0x4314d8
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x10]
call fcn.00431060
test eax, eax
jne 0x43159d
lea ecx, [esp + 0x258]
push 0x200
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
jmp 0x43136d
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
mov edi, dword [sym.imp.KERNEL32.dll__lread]
mov dword [esp + 0x18], 1
jmp 0x4315bc
lea eax, [esp + 0x50]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebp, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x439f04]
mov eax, 0xa00
test eax, ecx
jne 0x4315e3
mov edx, ecx
mov ecx, dword [0x439e70]
or edx, eax
xor ecx, eax
mov dword [0x439f04], edx
mov dword [0x439e70], ecx
lea edx, [esp + 0x154]
lea eax, [esp + 0x154]
push edx
push 0x1a3
push 0x436490
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x154]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x43164a
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d0
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x431663
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
add eax, edx
add eax, ecx
jmp 0x431667
mov eax, dword [esp + 0x1c]
push 0
push eax
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll__llseek]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
sub eax, edx
cmp eax, 0x3e80
mov dword [esp + 0x14], eax
jl 0x4316b4
push 0x3e80
push ebx
push ebp
call edi
mov edx, dword [esp + 0x24]
push 0x3e80
push ebx
push edx
call esi
mov eax, dword [esp + 0x14]
sub eax, 0x3e80
cmp eax, 0x3e80
mov dword [esp + 0x14], eax
jge 0x43168a
push eax
push ebx
push ebp
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push ecx
call esi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
mov edx, dword [esp + 0x24]
push edx
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lopen]
lea eax, [esp + 0x154]
push 0
push eax
call ebp
lea ecx, [esp + 0x50]
push 1
push ecx
mov dword [esp + 0x2c], eax
call ebp
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x431707
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov ecx, dword [0x439d3c]
push 0xc
push ecx
push ebp
call esi
lea edx, [esp + 0x30]
push 4
push edx
push ebp
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebp
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push 0
lea eax, [edx + eax + 0x10]
push 0
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll__llseek]
mov edx, dword [esp + 0x24]
push 0x3e80
push ebx
push edx
call edi
cmp eax, 0x3e80
mov dword [esp + 0x18], eax
jne 0x43179e
push 0x3e80
push ebx
push ebp
call esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push 0x3e80
add edx, 0x3e80
push ebx
push eax
mov dword [esp + 0x1c], edx
call edi
cmp eax, 0x3e80
mov dword [esp + 0x18], eax
je 0x43176f
push eax
push ebx
push ebp
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add edx, ecx
cmp eax, 0x14
mov dword [esp + 0x10], edx
jne 0x43184c
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 0xc
push ebp
call edi
lea edx, [esp + 0x10]
push 4
push edx
push ebp
call esi
mov eax, dword [esp + 0x10]
push 0
push eax
push ebp
call edi
mov ecx, 0x1800
mov eax, dword [esp + 0x10]
mov edi, ecx
cdq
idiv ecx
sub edi, edx
xor eax, eax
mov dword [esp + 0x10], eax
mov byte [eax + ebx], 0x55
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x3e80
mov dword [esp + 0x10], eax
jl 0x4317f5
cmp edi, 0x3e80
jl 0x431847
mov eax, 0x10624dd3
mul edi
shr edx, 0xa
mov eax, edx
mov dword [esp + 0x18], edx
neg eax
shl eax, 2
sub eax, edx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 7
add edi, edx
push 0x3e80
push ebx
push ebp
call esi
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x431833
push edi
push ebx
push ebp
call esi
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x258]
lea edx, [esp + 0x154]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x50]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x34]
mov esi, eax
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
pop edi
cmp ecx, edx
pop esi
pop ebp
setge al
pop ebx
add esp, 0x2d0
ret