Function at 0x452ce0
Capabilities:
Access peb ldr_data
Clear file content
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e738
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x472100]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x474db4]
mov esi, ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
xor edi, edi
mov ecx, 0x474db4
mov dword [esp + 0x18], edi
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 0x206
lea ecx, [esp + 0x42]
push edi
mov dword [esp + 0x260], edi
push ecx
mov word [esp + 0x48], di
call fcn.00413cc0
add esp, 0xc
call fcn.0040e800
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov eax, 1
mov byte [esp + 0x258], al
lea ebx, [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.00452ba0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x452f8c
mov edx, dword [esp + 0x1c]
cmp edx, 0x10
jb 0x452f8c
cmp dword [ebx], 0x72706e75
jne 0x452f8c
cmp dword [ebx + 4], edx
ja 0x452f8c
cmp dword [ebx + 0xc], edi
jne 0x452f8c
cmp word [ebx + 8], di
mov dword [esp + 0x14], edi
jbe 0x452f29
lea esi, [ebx + 0x28]
jmp 0x452de4
mov edx, dword [esp + 0x1c]
cmp dword [esi - 0x18], 0x6d657449
jne 0x452f29
mov ecx, dword [esi]
cmp ecx, edx
ja 0x452f29
mov eax, dword [esi + 4]
cmp eax, edx
ja 0x452f29
lea edi, [eax + ecx]
cmp edi, edx
ja 0x452f29
add ecx, ebx
push eax
push ecx
push 0
mov dword [esp + 0x44], ecx
call fcn.004529b0
add esp, 0xc
cmp dword [esi - 0x10], eax
jne 0x452f29
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00411177
mov ecx, dword [esi - 8]
add esp, 0xc
add ecx, ebx
push ecx
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x452f29
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x38]
push edi
call fcn.00453380
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00401b20
lea eax, [esp + 0x2c]
lea ebx, [esp + 0x20]
mov byte [esp + 0x258], 2
call fcn.00404940
lea eax, [esp + 0x2c]
mov byte [esp + 0x258], 1
call fcn.00404a80
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x452f25
call fcn.004533e0
cmp dword [esi - 0x10], eax
push edi
jne 0x452f1f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 8]
add eax, 1
add esi, 0x20
cmp eax, edx
mov dword [esp + 0x14], eax
mov ebx, ecx
jl 0x452de0
jmp 0x452f29
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
movzx eax, word [ebx + 8]
cmp dword [esp + 0x14], eax
jge 0x452f84
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
lea edi, [esp + 0x20]
lea ecx, [ecx]
test edi, edi
mov ebx, dword [esp + 0x24]
je 0x452f50
lea edx, [esp + 0x20]
cmp edi, edx
je 0x452f55
call fcn.00411167
cmp esi, ebx
je 0x452f8c
test edi, edi
jne 0x452f62
call fcn.00411167
cmp esi, dword [edi + 4]
jne 0x452f6c
call fcn.00411167
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [edi + 4]
jne 0x452f80
call fcn.00411167
mov esi, dword [esi]
jmp 0x452f40
mov dword [esp + 0x18], 1
lea ebx, [esp + 0x20]
mov byte [esp + 0x258], 0
call fcn.00404970
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00412205
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00410ae1
mov esp, ebp
pop ebp
ret 4