Function at 0x408948
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x408951
add esp, 0xfffff724
mov eax, dword [ebp - 4]
push ebx
push esi
mov esi, 0x45db94
push edi
mov ebx, dword [ebp + 8]
push 0
lea eax, [esi + 0x14b5]
lea edx, [esi + 0x14ad]
push eax
push edx
call fcn.0040bb50
test eax, eax
je 0x408c6e
cmp byte [0x460c80], 0
je 0x408c6e
lea eax, [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x404]
push ecx
call fcn.00456ff8
add esp, 0xc
test ebx, ebx
jne 0x4089bc
lea eax, [esi + 0x14b9]
jmp 0x4089be
mov eax, ebx
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x804]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x804]
jmp 0x4089fc
and edx, 0xff
cmp edx, 0x2f
jne 0x4089fb
mov byte [eax], 0x5c
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x4089ed
lea eax, [ebp - 0x814]
push eax
call sub.KERNEL32.dll_GetLocalTime
push 0x32
lea ecx, [ebp - 0x848]
push ecx
push 0
lea eax, [ebp - 0x814]
push eax
push 0
push 0x400
call sub.KERNEL32.dll_GetTimeFormatA
push 0x32
lea edx, [ebp - 0x87c]
push edx
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0x400
call sub.KERNEL32.dll_GetDateFormatA
lea eax, [ebp - 0x848]
push eax
lea edx, [ebp - 0x87c]
push edx
lea ecx, [esi + 0x14ba]
push ecx
lea eax, [ebp - 0x8e0]
push eax
call fcn.00456f9c
add esp, 0x10
lea edx, [esi + 0x14c0]
push edx
push 0x466ac8
call fcn.00455e68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408abf
lea edx, [esi + 0x14c4]
push edx
push 0x466ac8
call fcn.00455e68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408abf
push 0x466ac8
push 0x1f5
call fcn.00408028
push eax
call fcn.00414028
add esp, 8
jmp 0x408c6e
push 2
push 0
push ebx
call fcn.004561d0
add esp, 0xc
lea eax, [ebp - 0x804]
mov edx, 0x45d2fc
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x408af3
test cl, cl
je 0x408b1b
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x408af3
add eax, 2
add edx, 2
test cl, cl
jne 0x408ad7
je 0x408b1b
lea eax, [ebp - 0x804]
push eax
push 0x6b
call fcn.00408028
push eax
lea edx, [ebp - 0x8e0]
push edx
lea ecx, [esi + 0x14c8]
push ecx
push ebx
call fcn.00455e9c
add esp, 0x14
xor eax, eax
push esi
lea edi, [ebp - 0x804]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x45d2fc
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x8e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push eax
lea edx, [esi + 0x14e2]
push edx
push ebx
call fcn.00455e9c
add esp, 0xc
lea ecx, [ebp - 0x404]
push ecx
lea eax, [esi + 0x14ea]
push eax
push ebx
call fcn.00455e9c
add esp, 0xc
push 0
lea edx, [esi + 0x14f5]
push edx
lea ecx, [esi + 0x14ed]
push ecx
call fcn.0040bb50
test eax, eax
je 0x408c67
push 0x3e8
lea eax, [esi + 0x1506]
push eax
lea edx, [esi + 0x14fe]
push edx
call fcn.0040bb50
shl eax, 0xa
push ebx
mov esi, eax
call fcn.00456244
pop ecx
sub eax, esi
test eax, eax
jle 0x408c67
push 0
add eax, 0x2710
push eax
push ebx
call fcn.004561d0
add esp, 0xc
lea edx, [ebp - 0x28e0]
push ebx
push 0x2000
push edx
call fcn.00455b1c
add esp, 0xc
push ebx
call fcn.00456244
pop ecx
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x408c25
push 0
push edi
push ebx
call fcn.004561d0
add esp, 0xc
push ebx
push esi
push 1
lea eax, [ebp - 0x28e0]
push eax
call fcn.004562d0
add esp, 0x10
add dword [ebp - 4], esi
add edi, esi
push 0
mov edx, dword [ebp - 4]
push edx
push ebx
call fcn.004561d0
add esp, 0xc
push ebx
push 0x2000
push 1
lea ecx, [ebp - 0x28e0]
push ecx
call fcn.00456130
add esp, 0x10
mov esi, eax
test eax, eax
jne 0x408bf2
push ebx
call fcn.00455a88
pop ecx
push 0
push edi
push ebx
call fcn.004561d0
add esp, 0xc
xor edx, edx
mov dl, byte [ebx + 0x16]
push edx
call fcn.00458524
pop ecx
push eax
call sub.KERNEL32.dll_SetEndOfFile
push ebx
call fcn.004559e4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret