Function at 0x468540
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f02de
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x521390]
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 esi, ecx
lea eax, [ebp - 0x444]
push eax
mov ecx, str.5.15.0730.1111
mov dword [ebp - 0x440], esi
call fcn.0045ab70
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x444]
push 0x33c
push ecx
push str.http:__tuijian.bd.baofeng.com_banding_servlet_BandingXml
push str._s_ver_sditchid_duid
lea edi, [ebp - 0x434]
call fcn.00458b70
mov edx, dword [ebp - 0x434]
add esp, 0x10
cmp dword [edx - 4], 1
jle 0x4685eb
mov edx, dword [edx - 0xc]
push edx
mov eax, edi
push eax
call fcn.00458c10
mov edx, dword [ebp - 0x434]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x468610
sub eax, edi
sar eax, 1
push eax
mov eax, edx
lea ecx, [ebp - 0x250]
call fcn.00459050
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.00464da0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], 8
jb 0x46865f
mov eax, dword [ebp - 0x250]
push eax
call fcn.004cc431
add esp, 4
mov eax, 0xbb8
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov ecx, 7
xor eax, eax
mov dword [ebp - 0x23c], ecx
xor edx, edx
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x234], ax
push 3
mov eax, 0x4f9b80
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x224], ebx
call fcn.00459050
lea ecx, [ebp - 0x234]
lea ebx, [ebp - 0x430]
mov byte [ebp - 4], 5
call fcn.00465280
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], 8
mov bl, al
jb 0x4686f0
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004cc431
add esp, 4
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x60], 0
push edi
je 0x468731
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebp - 0x430]
call fcn.00464fe0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4689ff
mov dword [esi + 0x60], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x468974
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x430]
call fcn.00466290
mov byte [ebp - 4], 6
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x468770
lea ecx, [ebp - 0x234]
lea edx, [ebp - 0x438]
push edx
call fcn.0045ab70
mov eax, 4
lea ecx, [ebp - 0x448]
lea edx, [ebp - 0x438]
mov byte [ebp - 4], 7
call fcn.0045ccb0
mov byte [ebp - 4], 8
mov ebx, dword [ebp - 0x448]
push str.none
push ebx
call fcn.004cf013
add esp, 8
test eax, eax
jne 0x4687be
mov dword [esi + 0x50], 1
jmp 0x4688f3
mov eax, dword [ebp - 0x438]
cmp dword [eax - 0xc], 0
jl 0x4688ec
push str._root_
push eax
call fcn.004cf26f
add esp, 8
test eax, eax
je 0x4688ec
mov ecx, dword [ebp - 0x438]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4688ec
cmp dword [ecx - 0xc], 0
jl 0x4688ec
push str._node_
push ecx
call fcn.004cf26f
add esp, 8
test eax, eax
je 0x4688ec
sub eax, dword [ebp - 0x438]
sar eax, 1
cmp eax, 0xffffffff
je 0x4688ec
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004cfd40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045ab70
mov edx, str.BaoFengBdSetup.xml
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 9
call fcn.0045a690
mov eax, dword [ebp - 0x43c]
lea esi, [ebp - 0x26c]
call fcn.00459160
mov eax, esi
lea esi, [ebp - 0x430]
mov byte [ebp - 4], 0xa
call fcn.004662c0
test al, al
je 0x4688c1
mov eax, dword [ebp - 0x440]
mov dword [eax + 0x50], 3
lea edi, [eax + 0x54]
lea eax, [ebp - 0x43c]
call fcn.0045c2b0
jmp 0x4688ce
mov ecx, dword [ebp - 0x440]
mov dword [ecx + 0x50], 2
lea esi, [ebp - 0x26c]
call fcn.0046cec0
lea ecx, [ebp - 0x43c]
call fcn.0045a790
mov esi, dword [ebp - 0x440]
jmp 0x4688f3
mov dword [esi + 0x50], 2
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x468913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], 8
jb 0x468955
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004cc431
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], dx
jmp 0x46897b
mov dword [esi + 0x50], 2
mov eax, dword [esi + 0x50]
cmp eax, 2
jne 0x468990
call fcn.00467a20
mov esi, dword [ebp - 0x440]
jmp 0x4689d0
cmp eax, 3
jne 0x4689d0
mov eax, dword [esi + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4689d0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esi + 0x54]
push ecx
sub eax, 0x10
mov dword [ebp - 0x448], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00467b70
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x430]
call fcn.00464fe0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a0b
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 - 0x444]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468a34
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.004cbf11
mov esp, ebp
pop ebp
ret