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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x449ba1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4611f4]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
push str.2.12.1021.1152
lea ecx, [esp + 0x1c]
call fcn.00402410
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov dword [esp + 0x284], 0
call fcn.00417900
mov byte [esp + 0x280], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x280], 2
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push str.http:__tuijian.v.baofeng.com_banding_servlet_BandingXml
push str._s_ver_sditchid_suid
push eax
call fcn.0040be40
mov esi, dword [esp + 0x24]
add esp, 0x14
cmp dword [esi - 4], 1
jle 0x418de9
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.004021a0
mov esi, dword [esp + 0x10]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [esp + 0x64]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.BFVBdSetup.xml
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x3c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00434de0
add esp, 8
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x6c]
mov ecx, esi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
call fcn.0041dba0
xor ecx, ecx
cmp eax, 2
sete cl
test ecx, ecx
je 0x418eb9
lea ecx, [esp + 0x64]
mov dword [ebx + 0x288], 3
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e95
sub ecx, dword [esp + 0x1c]
lea eax, [esp + 0x64]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x28c]
call fcn.00402300
jmp 0x418ec3
mov dword [ebx + 0x288], 2
mov eax, dword [ebx + 0x288]
cmp eax, 2
jne 0x418ed7
mov ecx, ebx
call fcn.00418510
jmp 0x418f1d
cmp eax, 3
jne 0x418f1d
push dword [ebx + 0x28c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418f1d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
mov ecx, dword [esp + 0x18]
mov ebx, esp
mov ecx, dword [ecx + 0x28c]
sub ecx, 0x10
call fcn.00401e50
mov ecx, dword [esp + 0x18]
add eax, 0x10
mov dword [ebx], eax
call fcn.00418660
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [esp + 0x280], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x418f41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [esp + 0x280], 0
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f62
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x280], 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x418f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00431c68
mov esp, ebp
pop ebp
ret