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

Disassembly:
push 0xffffffffffffffff
push 0x45e838
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x472100]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
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 [esp + 0x264]
mov edx, dword [0x474db4]
mov esi, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
xor edi, edi
mov ecx, 0x474db4
mov dword [esp + 0x20], edi
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x206
lea ecx, [esp + 0x4a]
push edi
mov dword [esp + 0x260], edi
push ecx
mov word [esp + 0x50], di
call fcn.00413cd0
add esp, 0xc
call fcn.0040e4f0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x260]
mov byte [esp + 0x258], 1
lea ebx, [esp + 0x24]
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.00452be0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x452ff8
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x452ff8
cmp dword [ebx], 0x72706e75
jne 0x452ff8
cmp dword [ebx + 4], edx
ja 0x452ff8
cmp dword [ebx + 0xc], edi
jne 0x452ff8
cmp word [ebx + 8], di
mov dword [esp + 0x1c], edi
jbe 0x452f94
lea ebp, [ebx + 0x28]
jmp 0x452e54
mov edx, dword [esp + 0x24]
cmp dword [ebp - 0x18], 0x6d657449
jne 0x452f94
mov ecx, dword [ebp]
cmp ecx, edx
ja 0x452f94
mov eax, dword [ebp + 4]
cmp eax, edx
ja 0x452f94
lea esi, [eax + ecx]
cmp esi, edx
ja 0x452f94
add ecx, ebx
push eax
push ecx
push 0
mov dword [esp + 0x4c], ecx
call fcn.004529c0
add esp, 0xc
cmp dword [ebp - 0x10], eax
jne 0x452f94
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.00411177
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, ebx
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x5c]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x452f94
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x40]
push esi
call fcn.00453460
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x48]
call fcn.00401b40
lea eax, [esp + 0x34]
lea ebx, [esp + 0x28]
mov byte [esp + 0x258], 2
call fcn.004049a0
lea eax, [esp + 0x34]
mov byte [esp + 0x258], 1
call fcn.00401a00
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [esp + 0x5c]
push edx
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x452f90
mov edi, ebx
call fcn.004534c0
cmp dword [ebp - 0x10], eax
push ebx
jne 0x452f8e
call esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx edx, word [ecx + 8]
add eax, 1
add ebp, 0x20
cmp eax, edx
mov dword [esp + 0x1c], eax
mov ebx, ecx
jl 0x452e50
jmp 0x452f94
call esi
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx + 8]
cmp dword [esp + 0x1c], eax
jge 0x452ff0
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0x28]
mov edi, edi
test edi, edi
mov ebx, dword [esp + 0x2c]
je 0x452fc0
lea edx, [esp + 0x28]
cmp edi, edx
je 0x452fc5
call fcn.00411167
cmp esi, ebx
je 0x452ff8
test edi, edi
jne 0x452fd2
call fcn.00411167
cmp esi, dword [edi + 4]
jne 0x452fdc
call fcn.00411167
mov eax, dword [esi + 8]
push eax
call ebp
cmp esi, dword [edi + 4]
jne 0x452fec
call fcn.00411167
mov esi, dword [esi]
jmp 0x452fb0
mov dword [esp + 0x20], 1
lea ebx, [esp + 0x28]
mov byte [esp + 0x258], 0
call fcn.004049d0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00412205
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x2c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x453049
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00410ae1
add esp, 0x248
ret 8