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

Disassembly:
sub esp, 0x2c4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x44]
push 0x104
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x432abd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
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 + 0x48]
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 0x432b38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret
lea eax, [esp + 0x148]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x432b5c
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x432b77
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esp + 0x24c]
push 0x4000
lea eax, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x432f9a
lea ecx, [esp + 0x44]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea edx, [esp + 0x20]
mov ebp, eax
push 4
push edx
push ebp
call esi
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x432cd2
lea eax, [esp + 0x14]
push 4
push eax
push ebp
call esi
mov edi, 0x14
cmp dword [esp + 0x14], edi
jne 0x432ca5
push 4
push ebx
push ebp
call esi
lea ecx, [esp + 0x24]
push 4
push ecx
push ebp
call esi
push 8
push ebx
push ebp
call esi
mov dword [esp + 0x10], 0x18
cmp dword [esp + 0x14], edi
je 0x432c18
mov dword [esp + 0x10], 4
push 0x10
push ebx
push ebp
call esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
add edx, 0x10
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x432cf7
mov eax, dword [ebx + 0xc]
cmp eax, 0x3e80
jg 0x432d5f
cmp byte [ebx], 0x7b
jne 0x432d5f
mov esi, dword [esp + 0x30]
mov ecx, 3
mov edi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x432d28
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 + 0x1c]
mov edx, dword [esp + 0x18]
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 + 0x24], eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [esp + 0x1c], eax
jmp 0x432c2d
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 4
push ebp
call edi
push 0xc
push ebx
push ebp
call esi
cmp byte [ebx], 0x7b
jne 0x432d5f
cmp byte [ebx + 0xb], 0x7d
jne 0x432d5f
push 2
push 0
push ebp
jmp 0x432cdd
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push ebp
call edi
push 0
push 4
push ebp
mov dword [esp + 0x30], eax
call edi
mov dword [esp + 0x14], 0xa
jmp 0x432c10
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]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret
lea ecx, [esp + 0x148]
lea edx, [esp + 0x148]
push ecx
push 0x1a3
push 0x436490
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x148]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432d8d
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, 0x2c4
ret
mov edi, dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add edi, ecx
add edi, eax
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov eax, dword [esp + 0x24]
sub eax, edi
mov edi, dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0x3e80
mov dword [esp + 0x20], eax
jl 0x432de7
push 0x3e80
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x3e80
push ebx
push esi
call edi
mov eax, dword [esp + 0x20]
sub eax, 0x3e80
cmp eax, 0x3e80
mov dword [esp + 0x20], eax
jge 0x432dbd
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push esi
call edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push esi
call ebp
mov esi, dword [sym.imp.KERNEL32.dll__lopen]
lea edx, [esp + 0x148]
push 0
push edx
call esi
mov ebp, eax
lea eax, [esp + 0x44]
push 1
push eax
mov dword [esp + 0x20], ebp
call esi
mov esi, eax
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
push 0x3e80
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebp, eax
cmp ebp, 0x3e80
jne 0x432e89
push 0x3e80
push ebx
push esi
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0x3e80
add eax, 0x3e80
push ebx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll__lread]
mov ebp, eax
cmp ebp, 0x3e80
je 0x432e58
push ebp
push ebx
push esi
call edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, ebp
cmp eax, 0x14
mov dword [esp + 0x10], ecx
jne 0x432f33
mov ebp, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push 0xc
push esi
call ebp
lea eax, [esp + 0x10]
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
call ebp
mov ecx, 0x1800
mov eax, dword [esp + 0x10]
mov ebp, ecx
cdq
idiv ecx
sub ebp, 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 0x432edc
cmp ebp, 0x3e80
jl 0x432f2e
mov eax, 0x10624dd3
mul ebp
shr edx, 0xa
mov eax, edx
mov dword [esp + 0x1c], edx
neg eax
shl eax, 2
sub eax, edx
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 7
add ebp, edx
push 0x3e80
push ebx
push esi
call edi
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x432f1a
push ebp
push ebx
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x148]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x44]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x28]
mov esi, eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x38]
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]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c4
ret