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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420277
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4282d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax - 0xc]
lea edi, [esi + 0x14]
test eax, eax
je 0x408dd4
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 - 0x224]
push ecx
mov ecx, 0x424a8c
call fcn.00401fe0
push edi
mov eax, 4
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.0040a060
mov ebx, 1
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x228]
push str..exe
push edx
call fcn.0040ed81
add esp, 8
test eax, eax
jne 0x408bdc
mov eax, dword [edi]
push 0x2f
push eax
call fcn.0040f1ea
add esp, 8
test eax, eax
jne 0x408b8d
or ecx, 0xffffffff
jmp 0x408b93
sub eax, dword [edi]
sar eax, 1
mov ecx, eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, ecx
sub eax, ebx
push edi
lea ecx, [ebp - 0x22c]
call fcn.0040a060
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00403a70
mov byte [ebp - 4], bl
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 0x408bdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x224]
cmp dword [ecx - 0xc], 0
jne 0x408bfe
push str.BF_KanDianYing.exe
lea edx, [ebp - 0x224]
push edx
mov ebx, 0x12
call fcn.004029b0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00401fe0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x21c]
call fcn.004028f0
mov ecx, dword [ebp - 0x21c]
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 - 0x220], eax
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
push 1
push ecx
push edx
push eax
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfv_binduid_sver_spidbfvmsgditchid:_s_type:BFV_t:_d
lea edi, [ebp - 0x220]
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov edx, dword [ebp - 0x21c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x408ca5
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x21c]
mov eax, dword [esi + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
mov ebx, edx
jge 0x408cc3
xor eax, eax
lea ecx, [esi + 0x14]
call fcn.00402a90
mov edi, dword [esi + 0x14]
push edi
lea eax, [esi + 0x30]
call fcn.0040cc40
test eax, eax
je 0x408d39
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
push 2
push ecx
push edx
push eax
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfv_binduid_sver_spidbfvmsgditchid:_s_type:BFV_t:_d
lea edi, [ebp - 0x220]
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov ecx, dword [ebp - 0x21c]
push 0
push ecx
call fcn.004096b0
test al, al
je 0x408d39
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 3
push edx
push eax
push ecx
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfv_binduid_sver_spidbfvmsgditchid:_s_type:BFV_t:_d
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d5f
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 - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d85
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dab
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 - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dd4
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 ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d58c
mov esp, ebp
pop ebp
ret