Function at 0x407c70
Capabilities:
Access peb ldr_data
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58c6ba
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x254]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x238], ebx
mov word [esp + 0x34], bx
mov dword [esp + 0x24c], ebx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x24c], 1
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0xfeff
mov dword [esp + 0x28], ebx
call fcn.004077a0
cmp eax, ebx
jl 0x408146
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407d17
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x34]
mov ebx, eax
push ecx
mov eax, edi
call fcn.00480ff0
mov ecx, dword [esp + 0x30]
push 0
lea edx, [esp + 0x2c]
push edx
push 2
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407d5e
call fcn.00473d40
test eax, eax
jl 0x408144
lea ecx, [esp + 0x30]
call fcn.004078e0
test eax, eax
jl 0x408144
mov edx, str.task_begin_r_n
lea edi, [esp + 0x14]
call fcn.00481720
lea edx, [esp + 0x18]
push str.appname:
lea ecx, [ebp + 4]
push edx
call fcn.00412220
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 2
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
push ecx
call fcn.00473c80
mov byte [esp + 0x24c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407de9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push str.apppath:
push ecx
mov ecx, ebp
call fcn.00412220
push eax
lea edx, [esp + 0x24]
push edx
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 4
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00473c80
mov byte [esp + 0x24c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [esp + 0x1c]
push str.pkgname:
lea ecx, [ebp + 8]
push edx
call fcn.00412220
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 6
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
mov byte [esp + 0x24c], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [esp + 0x1c]
push str.filesize:
lea ecx, [ebp + 0x10]
push edx
call fcn.00412220
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 8
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
mov byte [esp + 0x24c], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407faa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407fd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, str.replace:0_r_n
lea edi, [esp + 0x14]
call fcn.004816e0
lea edx, [esp + 0x1c]
push str.ver:
lea ecx, [ebp + 0xc]
push edx
call fcn.00412220
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 0xa
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 0xb
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
push ecx
call fcn.00473c80
mov byte [esp + 0x24c], 0xa
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40804c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [esp + 0x1c]
push str.vercode:
lea ecx, [ebp + 0x14]
push edx
call fcn.00412220
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5aabb0
mov byte [esp + 0x25c], 0xc
call fcn.00478cb0
add esp, 0x10
mov byte [esp + 0x24c], 0xd
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
mov byte [esp + 0x24c], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4080e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40810e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, str.task_end
lea edi, [esp + 0x14]
call fcn.004816e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x408140
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x2c]
lea edx, [esp + 0x34]
call fcn.004078b0
test eax, eax
jl 0x408140
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x408159
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x30], ebx
mov ebp, dword [esp + 0x20]
cmp ebp, ebx
jne 0x408176
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x408176
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, edi
call fcn.00481760
mov byte [esp + 0x24c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40819d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4081ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00564207
add esp, 0x23c
ret