Function at 0x409730
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4201a7
mov eax, dword fs:[0]
push eax
sub esp, 0x428
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 + 0x18]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x409b60
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x424], edi
mov ebx, 1
mov byte [ebp - 4], bl
mov eax, dword [esi + 0x18]
push eax
call fcn.0040f792
add esp, 4
test eax, eax
jne 0x409980
push ebx
push 0x23
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x434]
push edx
lea ecx, [ebp - 0x420]
call fcn.00401fe0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x434]
cmp dword [eax - 0xc], 0
jne 0x40981e
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
jmp 0x409b1e
push 0x36
push str.BaofengStormPlayerTempBFGameSetupBFGameInstall.exe
lea ebx, [ebp - 0x434]
call fcn.004028f0
lea ecx, [ebp - 0x430]
push ecx
lea ecx, [ebp - 0x420]
call fcn.00401fe0
push 0x3b
push str.BaofengStormPlayerTempBFGameSetupBFGameInstall_temp.exe
lea ebx, [ebp - 0x430]
mov byte [ebp - 4], 3
call fcn.004028f0
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call fcn.0040fbf6
add esp, 4
push eax
call fcn.0040fc47
add esp, 4
mov edx, str.http:__dl.baofeng.com_BFGame_BF_BFGame.exe
lea edi, [ebp - 0x428]
call fcn.00402450
call fcn.0040fc59
push eax
mov eax, dword [esi + 0x24]
push eax
push str.http:__pvlog.moviebox.baofeng.com_log.php
push str._s_channelbfgame_package1_index.htmlpidbfgameuid_sr_d
lea edi, [ebp - 0x424]
call fcn.00403920
add esp, 0x10
mov ecx, edi
call fcn.00409dd0
mov edx, dword [ebp - 0x430]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4098d5
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x430]
mov ebx, edx
mov edx, dword [ebp - 0x428]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4098ff
xor eax, eax
lea ecx, [ebp - 0x428]
call fcn.00402a90
mov edx, dword [ebp - 0x428]
push edx
lea eax, [esi + 0x30]
call fcn.0040cc40
test eax, eax
je 0x40994b
mov ecx, dword [ebp - 0x434]
mov edx, dword [ebp - 0x430]
push 3
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0040fc59
push eax
mov eax, dword [esi + 0x24]
push eax
push str.http:__clicklog.moviebox.baofeng.com_click.php
push str._s_channelbfgame_package1_index.htmlpidbfgameuid_sr_d
lea edi, [ebp - 0x424]
call fcn.00403920
add esp, 0x10
mov ecx, edi
call fcn.00409dd0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409971
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 - 0x434]
jmp 0x409af5
cmp eax, ebx
jne 0x409b11
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 - 0x42c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00401fe0
push 0x15
push str.BFGameInstallTemp.exe
lea ebx, [ebp - 0x42c]
mov byte [ebp - 4], 4
call fcn.004028f0
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, str.http:__dl.baofeng.com_BFGame_BFKB_BFGame.exe
lea edi, [ebp - 0x428]
call fcn.00402450
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 1
push eax
push ecx
push edx
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfg_binduid_sver_spidbfgmsgditchid:_s_type:BFG_t:_d
lea edi, [ebp - 0x424]
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov edx, dword [ebp - 0x42c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409a4e
xor eax, eax
mov ecx, ebx
call fcn.00402a90
mov edx, dword [ebp - 0x42c]
mov ebx, edx
mov edx, dword [ebp - 0x428]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409a78
xor eax, eax
lea ecx, [ebp - 0x428]
call fcn.00402a90
mov edx, dword [ebp - 0x428]
push edx
lea eax, [esi + 0x30]
call fcn.0040cc40
test eax, eax
je 0x409aeb
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 2
push eax
push ecx
push edx
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfg_binduid_sver_spidbfgmsgditchid:_s_type:BFG_t:_d
lea edi, [ebp - 0x424]
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov eax, dword [ebp - 0x42c]
push 0
push eax
call fcn.004096b0
test al, al
je 0x409aeb
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
push 3
push ecx
push edx
push eax
push str.http:__sclog.moviebox.baofeng.com_logger.php
push str._s_ltypebfg_binduid_sver_spidbfgmsgditchid:_s_type:BFG_t:_d
call fcn.00403920
add esp, 0x18
mov ecx, edi
call fcn.00409dd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b11
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 - 0x424]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b37
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 - 0x428]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b60
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