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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afa24
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x28]
push eax
mov ecx, str.5.70.0518.1111
mov dword [esp + 0x20], esi
call fcn.00402120
mov dword [esp + 0x460], 0
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x4bb300
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
mov byte [esp + 0x468], 1
call fcn.00402030
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x41ae96
call fcn.0041b3b0
lea esi, [esp + 0x18]
call fcn.0043ccf0
lea edi, [esp + 0x14]
mov byte [esp + 0x460], 2
call fcn.00404600
mov byte [esp + 0x460], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ae92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x460], 5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push ecx
push edx
push str.http:__tuijian.bd.baofeng.com_banding_servlet_BandingXml
push str._s_ver_sditchid_suid
lea edi, [esp + 0x30]
call fcn.00402360
mov edi, dword [esp + 0x30]
add esp, 0x10
cmp dword [edi - 4], 1
jle 0x41aef1
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004021c0
mov edi, dword [esp + 0x20]
xor edx, edx
mov ebx, 7
mov eax, edi
mov word [esp + 0x4c], dx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41af10
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x50]
call fcn.004026c0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x464], 6
call fcn.004184a0
mov eax, 8
mov byte [esp + 0x460], al
cmp dword [esp + 0x60], eax
jb 0x41af63
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004912d0
add esp, 4
mov eax, dword [edi - 8]
push eax
xor edx, edx
push edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], 0
mov word [esp + 0x54], dx
call fcn.004923b5
xor ecx, ecx
add esp, 8
cmp eax, ecx
jl 0x41b3a3
cmp eax, dword [edi - 8]
jg 0x41b3a3
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, 0xbb8
mov dword [esp + 0x238], eax
mov dword [esp + 0x23c], eax
mov dword [esp + 0x240], eax
xor eax, eax
mov dword [esp + 0x234], ecx
mov dword [esp + 0x40], ecx
mov word [esp + 0x30], ax
push 3
mov eax, 0x4bc78c
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebx
call fcn.004026c0
lea ecx, [esp + 0x30]
lea ebx, [esp + 0x84]
mov byte [esp + 0x460], 9
call fcn.00418980
mov byte [esp + 0x460], 8
cmp dword [esp + 0x44], 8
mov byte [esp + 0x13], al
jb 0x41b017
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004912d0
add esp, 4
lea ebx, [esi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x4c], 0
push ebx
je 0x41b0d9
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [esp + 0x84]
call fcn.004186e0
lea eax, [edi - 0x10]
mov byte [esp + 0x460], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b08a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b0b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.004912db
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x41b313
lea eax, [esp + 0x30]
lea edx, [esp + 0x84]
call fcn.00419990
mov byte [esp + 0x460], 0xa
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x41b118
lea ecx, [esp + 0x30]
lea edx, [esp + 0x24]
push edx
call fcn.00402120
mov eax, 4
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
mov byte [esp + 0x460], 0xb
call fcn.00405040
mov byte [esp + 0x460], 0xc
mov ebx, dword [esp + 0x2c]
push str.none
push ebx
call fcn.004924d8
add esp, 8
test eax, eax
jne 0x41b166
mov dword [esi + 0x40], 1
jmp 0x41b292
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jl 0x41b28b
push str._root_
push eax
call fcn.00493f13
add esp, 8
test eax, eax
je 0x41b28b
mov ecx, dword [esp + 0x24]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x41b28b
cmp dword [ecx - 0xc], 0
jl 0x41b28b
push str._node_
push ecx
call fcn.00493f13
add esp, 8
test eax, eax
je 0x41b28b
sub eax, dword [esp + 0x24]
sar eax, 1
cmp eax, 0xffffffff
je 0x41b28b
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x24e]
push ecx
mov word [esp + 0x250], ax
call fcn.004950a0
add esp, 0xc
lea edx, [esp + 0x244]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x248]
call fcn.00402120
mov edx, str.BaoFengBdSetup.xml
lea eax, [esp + 0x18]
mov byte [esp + 0x460], 0xd
call fcn.0040a4e0
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x68]
call fcn.004027d0
mov eax, esi
lea esi, [esp + 0x84]
mov byte [esp + 0x460], 0xe
call fcn.004199c0
test al, al
je 0x41b268
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x40], 3
lea edi, [eax + 0x44]
lea eax, [esp + 0x18]
call fcn.00404600
mov edi, dword [esp + 0x20]
jmp 0x41b273
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x40], 2
lea esi, [esp + 0x68]
call fcn.0041e220
lea ecx, [esp + 0x18]
call fcn.00401d40
mov esi, dword [esp + 0x1c]
jmp 0x41b292
mov dword [esi + 0x40], 2
lea eax, [ebx - 0x10]
mov byte [esp + 0x460], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], 0xa
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b2de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], 8
cmp dword [esp + 0x44], 8
jb 0x41b2fa
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004912d0
add esp, 4
xor edx, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], dx
jmp 0x41b31a
mov dword [esi + 0x40], 2
mov eax, dword [esi + 0x40]
cmp eax, 2
jne 0x41b32d
call fcn.0041a200
mov esi, dword [esp + 0x1c]
jmp 0x41b370
cmp eax, 3
jne 0x41b370
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b370
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esi + 0x44]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.004046f0
add eax, 0x10
push esi
mov dword [ebx], eax
call fcn.0041a360
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0041b5f0
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [esp + 0x84]
call fcn.004186e0
lea eax, [edi - 0x10]
mov byte [esp + 0x460], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41b056
push 0x80070057
call fcn.00402bc0
int3