Function at 0x46b040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5f7
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5522c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x414]
push eax
mov ecx, str.http:__dl.baofeng.com_baofeng5_showtree.ini
call fcn.004595d0
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x414]
cmp dword [eax - 4], 1
jle 0x46b0a5
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.00459670
mov eax, dword [ebp - 0x414]
xor ecx, ecx
mov word [ebp - 0x250], cx
mov ecx, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], esi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x46b0c3
sub ecx, ebx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x250]
call fcn.00459b90
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00467bb0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x23c], 8
jb 0x46b110
mov eax, dword [ebp - 0x250]
push eax
call fcn.004e5101
add esp, 4
mov eax, dword [ebp - 0x414]
xor ecx, ecx
mov word [ebp - 0x250], cx
mov ecx, dword [eax - 8]
push ecx
mov ebx, 7
push eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
call fcn.004e7680
add esp, 8
cmp eax, esi
jl 0x46b332
mov ecx, dword [ebp - 0x414]
cmp eax, dword [ecx - 8]
jg 0x46b332
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x414]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, 0xbb8
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
push 3
mov eax, 0x51e4b0
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
call fcn.00459b90
lea ecx, [ebp - 0x234]
lea ebx, [ebp - 0x410]
mov byte [ebp - 4], 4
call fcn.00468090
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 8
mov bl, al
jb 0x46b1d8
mov eax, dword [ebp - 0x234]
push eax
call fcn.004e5101
add esp, 4
test bl, bl
je 0x46b2e3
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004e98c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x218]
call fcn.004595d0
push 0xc
push str.showtree.ini
lea ebx, [ebp - 0x418]
mov byte [ebp - 4], 5
call fcn.0045b440
mov eax, dword [ebp - 0x418]
xor ebx, ebx
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46b260
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x234]
call fcn.00459b90
lea eax, [ebp - 0x234]
lea esi, [ebp - 0x410]
call fcn.004690d0
cmp dword [ebp - 0x220], 8
jb 0x46b2a4
mov eax, dword [ebp - 0x234]
push eax
call fcn.004e5101
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x418]
xor ecx, ecx
add eax, 0xfffffff0
mov word [ebp - 0x234], cx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b2e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x410]
call fcn.00467df0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b317
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 esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4be0
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045a480
int3