Function at 0x408df0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420212
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
mov eax, dword [eax - 0xc]
lea esi, [edi + 0x20]
mov dword [ebp - 0x220], edi
test eax, eax
je 0x4091b4
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00410020
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, 0x424a8c
call fcn.00401fe0
push esi
mov eax, 4
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.0040a060
mov ebx, 1
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x22c]
push str..exe
push edx
call fcn.0040ed81
add esp, 8
test eax, eax
jne 0x408f1b
mov eax, dword [esi]
push 0x2f
push eax
call fcn.0040f1ea
add esp, 8
test eax, eax
jne 0x408ec6
or ecx, 0xffffffff
jmp 0x408ecc
sub eax, dword [esi]
sar eax, 1
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
sub eax, ebx
push esi
lea ecx, [ebp - 0x21c]
call fcn.0040a060
lea edi, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.00403a70
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
cmp dword [ecx - 0xc], 0
jne 0x408f3d
push str.StormMenu.exe
lea edx, [ebp - 0x228]
push edx
mov ebx, 0xd
call fcn.004029b0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401fe0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x224]
call fcn.004028f0
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
push 1
push ecx
push edx
push str.http:__log.ltype.baofeng.com_logger.php
push str._s_ltypemenuinstalluid_sver_spidchidmsg_download_:__d_
lea edi, [ebp - 0x21c]
call fcn.00403920
add esp, 0x14
mov ecx, edi
call fcn.00409dd0
mov edx, dword [ebp - 0x224]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x408fe0
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x224]
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
mov ebx, edx
jge 0x408ffc
xor eax, eax
mov ecx, esi
call fcn.00402a90
mov esi, dword [esi]
push esi
mov esi, dword [ebp - 0x220]
lea eax, [esi + 0x30]
call fcn.0040cc40
test eax, eax
je 0x409119
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0
push eax
push ecx
push str.http:__log.ltype.baofeng.com_logger.php
push str._s_ltypemenuinstalluid_sver_spidchidmsg_download_:__d_
lea edi, [ebp - 0x21c]
call fcn.00403920
add esp, 0x14
mov ecx, edi
call fcn.00409dd0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.B5_Bundle
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x224]
push str.Silent
push ecx
push str._s___s___s
lea edi, [ebp - 0x220]
call fcn.00403920
mov ebx, dword [ebp - 0x220]
add esp, 0x10
cmp dword [ebx - 4], 1
jle 0x40909d
mov edx, dword [ebx - 0xc]
push edx
mov eax, edi
push eax
call fcn.00402af0
mov ebx, dword [ebp - 0x220]
push ebx
push 0
call fcn.004096b0
test al, al
je 0x4090d2
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 1
push ecx
push edx
push str.http:__log.ltype.baofeng.com_logger.php
push str._s_ltypemenuinstalluid_sver_spidchidmsg_install_:__d_
lea edi, [ebp - 0x21c]
call fcn.00403920
add esp, 0x14
mov ecx, edi
call fcn.00409dd0
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0040e323
add esp, 8
test eax, eax
js 0x4091d0
cmp eax, dword [ebx - 8]
jg 0x4091d0
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40913f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40918b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402e70
int3